This commit is contained in:
zhuzichu 2023-09-08 13:54:40 +08:00
parent 249c294926
commit e1292966c1
2 changed files with 4 additions and 5 deletions

View File

@ -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();
}
}

View File

@ -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();});