|
@@ -111,13 +111,17 @@ void HomeView::connectSignalsAndSlots()
|
|
connect(m_projListWidget, &ProjectListWidget::sigOpen, this, &HomeView::slotOpenProject);
|
|
connect(m_projListWidget, &ProjectListWidget::sigOpen, this, &HomeView::slotOpenProject);
|
|
connect(m_projListWidget, &ProjectListWidget::sigInfo, this, &HomeView::slotProjectInfo);
|
|
connect(m_projListWidget, &ProjectListWidget::sigInfo, this, &HomeView::slotProjectInfo);
|
|
connect(m_projListWidget, &ProjectListWidget::sigDelete, this, &HomeView::slotDeleteProject);
|
|
connect(m_projListWidget, &ProjectListWidget::sigDelete, this, &HomeView::slotDeleteProject);
|
|
|
|
+ connect(m_previous, &PushButton::clicked, this, &HomeView::slotPreviousClicked);
|
|
|
|
+ connect(m_next, &PushButton::clicked, this, &HomeView::slotNextClicked);
|
|
|
|
+ connect(m_first, &PushButton::clicked, this, &HomeView::slotFirstClicked);
|
|
|
|
+ connect(m_final, &PushButton::clicked, this, &HomeView::slotFinalClicked);
|
|
}
|
|
}
|
|
|
|
|
|
void HomeView::loadProjects()
|
|
void HomeView::loadProjects()
|
|
{
|
|
{
|
|
qDeleteAll(m_projList);
|
|
qDeleteAll(m_projList);
|
|
m_projList.clear();
|
|
m_projList.clear();
|
|
- int code = ProjectManager::queryProjects(&m_projList);
|
|
|
|
|
|
+ int code = ProjectManager::queryProjects(&m_projList, m_total, m_page, m_pageSize, m_search->text());
|
|
|
|
|
|
if (code != QF_CODE_SUCCEEDED) {
|
|
if (code != QF_CODE_SUCCEEDED) {
|
|
QFDAlert::showAlertWithCode(code, this);
|
|
QFDAlert::showAlertWithCode(code, this);
|
|
@@ -214,3 +218,23 @@ void HomeView::slotDeleteProject(ProjectInfo *proj)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+void HomeView::slotPreviousClicked()
|
|
|
|
+{
|
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << endl;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void HomeView::slotNextClicked()
|
|
|
|
+{
|
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << endl;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void HomeView::slotFirstClicked()
|
|
|
|
+{
|
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << endl;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void HomeView::slotFinalClicked()
|
|
|
|
+{
|
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << endl;
|
|
|
|
+}
|