加入应用列表的翻页功能

This commit is contained in:
RigoLigoRLC
2021-09-06 20:19:52 +08:00
parent 4ede620e71
commit f5649a121f
7 changed files with 148 additions and 28 deletions

View File

@@ -99,7 +99,7 @@ namespace SpkUi
}
mLastSelectedItem = item;
if(item->data(column, RoleItemIsCategory).toBool())
emit SwitchToCategory(item->data(column, RoleItemCategoryPageId).toInt());
emit SwitchToCategory(item->data(column, RoleItemCategoryPageId).toInt(), 0);
else
emit SwitchToPage(item->data(column, RoleItemCategoryPageId).toInt());
}
@@ -117,7 +117,7 @@ namespace SpkUi
}
signals:
void SwitchToCategory(int aCategoryId);
void SwitchToCategory(int aCategoryId, int aPage);
void SwitchToPage(int aPageId);
};
@@ -179,7 +179,7 @@ class SpkMainWindow : public SpkWindow
void CategoryDataReceived();
void EnterCategoryList(int id);
void EnterCategoryList(int aCategoryId, int aPage);
void CategoryListDataReceived();
private: