Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzichu520 committed Sep 8, 2023
1 parent 249c294 commit e129296
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/FluHttp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
}
Expand All @@ -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();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Screenshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();});
Expand Down

0 comments on commit e129296

Please sign in to comment.