mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-18 11:32:20 +08:00
修复API call失败后鼠标不会回到默认状态的bug
This commit is contained in:
parent
908dd7d7a7
commit
96ba6770b0
@ -124,6 +124,7 @@ void SpkMainWindow::EnterCategoryList(int aCategoryId, int aPage)
|
||||
void SpkMainWindow::CategoryListDataReceived()
|
||||
{
|
||||
QJsonValue retval;
|
||||
setCursor(Qt::ArrowCursor);
|
||||
int verify = SpkUtils::VerifyReplyJson(mCategoryAppListGetReply, retval);
|
||||
if(verify || !retval.isObject())
|
||||
{
|
||||
@ -133,7 +134,6 @@ void SpkMainWindow::CategoryListDataReceived()
|
||||
}
|
||||
SwitchToPage(SpkUi::PgAppList);
|
||||
PopulateAppList(retval.toObject(), "");
|
||||
setCursor(Qt::ArrowCursor);
|
||||
}
|
||||
|
||||
void SpkMainWindow::SearchKeyword(QString aKeyword, int aPage)
|
||||
@ -156,6 +156,7 @@ void SpkMainWindow::SearchKeyword(QString aKeyword, int aPage)
|
||||
void SpkMainWindow::SearchDataReceived()
|
||||
{
|
||||
QJsonValue retval;
|
||||
setCursor(Qt::ArrowCursor);
|
||||
auto verify = SpkUtils::VerifyReplyJson(mCategoryAppListGetReply, retval);
|
||||
if(verify || !retval.isObject())
|
||||
{
|
||||
@ -165,7 +166,6 @@ void SpkMainWindow::SearchDataReceived()
|
||||
}
|
||||
SwitchToPage(SpkUi::PgAppList);
|
||||
PopulateAppList(retval.toObject(), mCategoryAppListGetReply->property("keyword").toString());
|
||||
setCursor(Qt::ArrowCursor);
|
||||
}
|
||||
|
||||
void SpkMainWindow::PopulateAppList(QJsonObject appData, QString &&keyword)
|
||||
@ -242,6 +242,7 @@ void SpkMainWindow::EnterAppDetails(int aAppId)
|
||||
void SpkMainWindow::AppDetailsDataReceived()
|
||||
{
|
||||
QJsonValue retval;
|
||||
setCursor(Qt::ArrowCursor);
|
||||
auto verify = SpkUtils::VerifyReplyJson(mAppDetailsGetReply, retval);
|
||||
if(verify || !retval.isObject())
|
||||
{
|
||||
@ -251,7 +252,6 @@ void SpkMainWindow::AppDetailsDataReceived()
|
||||
}
|
||||
SwitchToPage(SpkUi::PgAppList);
|
||||
PopulateAppDetails(retval.toObject());
|
||||
setCursor(Qt::ArrowCursor);
|
||||
}
|
||||
|
||||
void SpkMainWindow::PopulateAppDetails(QJsonObject appDetails)
|
||||
|
Loading…
x
Reference in New Issue
Block a user