mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
update
This commit is contained in:
parent
249c294926
commit
e1292966c1
@ -248,7 +248,6 @@ void FluHttp::postJson(HttpRequest* request,HttpCallable* callable){
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
void FluHttp::get(HttpRequest* request,HttpCallable* callable){
|
||||
request->method("get");
|
||||
auto requestMap = request->toMap();
|
||||
@ -525,7 +524,7 @@ qreal FluHttp::getBreakPointProgress(HttpRequest* request){
|
||||
}
|
||||
|
||||
HttpRequest* FluHttp::newRequest(QString url){
|
||||
HttpRequest* request = new HttpRequest();
|
||||
HttpRequest* request = new HttpRequest(this);
|
||||
request->url(url);
|
||||
return request;
|
||||
}
|
||||
@ -540,8 +539,8 @@ void FluHttp::onFinish(QPointer<HttpCallable> callable,HttpRequest* request){
|
||||
if(callable){
|
||||
Q_EMIT callable->finish();
|
||||
}
|
||||
if(!request->parent()){
|
||||
delete request;
|
||||
if(request->parent()->inherits("FluHttp")){
|
||||
request->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
Screenshot::Screenshot(QQuickItem* parent) : QQuickPaintedItem(parent)
|
||||
{
|
||||
_desktopGeometry = qApp->primaryScreen()->virtualGeometry();
|
||||
maskColor(QColor(0,0,0,80));
|
||||
maskColor(QColor(0,0,0,150));
|
||||
start(QPoint(0,0));
|
||||
end(QPoint(0,0));
|
||||
connect(this,&Screenshot::startChanged,this,[=]{update();});
|
||||
|
Loading…
Reference in New Issue
Block a user