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