|
@@ -104,15 +104,16 @@ void ExpertManageView::showExpertInfoWidget(ExpertInfoWidget::Mode mode)
|
|
|
{
|
|
|
if (m_expertInfoWidget == nullptr) {
|
|
|
m_expertInfoWidget = new ExpertInfoWidget(this);
|
|
|
+ connect(m_expertInfoWidget, &ExpertInfoWidget::sigConfirm, this, &ExpertManageView::slotConfirmAddExpert);
|
|
|
}
|
|
|
|
|
|
if (m_expertInfoWidget->isVisible() == false) {
|
|
|
- m_expertInfoWidget->clearInputs();
|
|
|
m_expertInfoWidget->show();
|
|
|
m_expertInfoWidget->setFocus(Qt::NoFocusReason);
|
|
|
}
|
|
|
|
|
|
m_expertInfoWidget->setMode(mode);
|
|
|
+ m_expertInfoWidget->clearInputs();
|
|
|
}
|
|
|
|
|
|
void ExpertManageView::hideExpertInfoWidget()
|
|
@@ -141,6 +142,7 @@ void ExpertManageView::refreshList()
|
|
|
void ExpertManageView::slotAddExpertClicked()
|
|
|
{
|
|
|
showExpertInfoWidget(ExpertInfoWidget::Create);
|
|
|
+ m_expertListWidget->clearSelection();
|
|
|
}
|
|
|
|
|
|
void ExpertManageView::slotDetailClicked()
|
|
@@ -173,3 +175,9 @@ void ExpertManageView::slotListItemDoubleClicked(int row)
|
|
|
QFUser *user = m_userList[row];
|
|
|
showExpertInfo(user);
|
|
|
}
|
|
|
+
|
|
|
+void ExpertManageView::slotConfirmAddExpert()
|
|
|
+{
|
|
|
+ QFUser *user = m_expertInfoWidget->user();
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << user->id << user->userName;
|
|
|
+}
|