|
@@ -33,9 +33,11 @@ void ExpertManageView::initialize()
|
|
|
m_searchLineEdit = new SearchLineEdit(this);
|
|
|
m_searchLineEdit->setPlaceholderText("搜索");
|
|
|
m_searchLineEdit->setMinimumWidth(300);
|
|
|
- m_addExpertPushButton = new PushButton("添加", NEWFLICON(FluentIcon, ADD), this);
|
|
|
- m_detailPushButton = new PushButton("查看详情", NEWFLICON(QFDIcon, Detail), this);
|
|
|
- m_deletePushButton = new PushButton("删除", NEWFLICON(FluentIcon, DELETE), this);
|
|
|
+ m_addExpertButton = new PushButton("添加", NEWFLICON(FluentIcon, ADD), this);
|
|
|
+ m_detailButton = new ToolButton(NEWFLICON(QFDIcon, Detail), this);
|
|
|
+ m_detailButton->setToolTip("详细信息");
|
|
|
+ m_deleteButton = new ToolButton(NEWFLICON(FluentIcon, DELETE), this);
|
|
|
+ m_deleteButton->setToolTip("删除用户");
|
|
|
|
|
|
m_expertInfoWidget = new ExpertInfoWidget(this);
|
|
|
m_expertListWidget = new ExpertListWidget(this);
|
|
@@ -51,10 +53,10 @@ void ExpertManageView::initLayout()
|
|
|
m_hBoxLayout->addWidget(m_titleLabel);
|
|
|
m_hBoxLayout->addSpacing(15);
|
|
|
m_hBoxLayout->addWidget(m_searchLineEdit, 0, Qt::AlignLeft);
|
|
|
- m_hBoxLayout->addWidget(m_addExpertPushButton, 1, Qt::AlignLeft);
|
|
|
+ m_hBoxLayout->addWidget(m_addExpertButton, 1, Qt::AlignLeft);
|
|
|
m_hBoxLayout->addStretch();
|
|
|
- m_hBoxLayout->addWidget(m_detailPushButton);
|
|
|
- m_hBoxLayout->addWidget(m_deletePushButton);
|
|
|
+ m_hBoxLayout->addWidget(m_detailButton);
|
|
|
+ m_hBoxLayout->addWidget(m_deleteButton);
|
|
|
setListButtonHidden(true);
|
|
|
|
|
|
m_vBoxLayout->addWidget(m_expertListWidget);
|
|
@@ -62,9 +64,9 @@ void ExpertManageView::initLayout()
|
|
|
|
|
|
void ExpertManageView::connectSignalsAndSlots()
|
|
|
{
|
|
|
- connect(m_addExpertPushButton, &PushButton::clicked, this, &ExpertManageView::slotAddExpertClicked);
|
|
|
- connect(m_detailPushButton, &PushButton::clicked, this, &ExpertManageView::slotDetailClicked);
|
|
|
- connect(m_deletePushButton, &PushButton::clicked, this, &ExpertManageView::slotDeleteClicked);
|
|
|
+ connect(m_addExpertButton, &PushButton::clicked, this, &ExpertManageView::slotAddExpertClicked);
|
|
|
+ connect(m_detailButton, &PushButton::clicked, this, &ExpertManageView::slotDetailClicked);
|
|
|
+ connect(m_deleteButton, &PushButton::clicked, this, &ExpertManageView::slotDeleteClicked);
|
|
|
connect(m_expertListWidget, &ExpertListWidget::signalSelectionChanged, this,
|
|
|
&ExpertManageView::slotListSelectionChanged);
|
|
|
connect(m_expertListWidget, &ExpertListWidget::siganlItemDoubleClicked, this,
|
|
@@ -73,8 +75,8 @@ void ExpertManageView::connectSignalsAndSlots()
|
|
|
|
|
|
void ExpertManageView::setListButtonHidden(bool hidden)
|
|
|
{
|
|
|
- m_detailPushButton->setHidden(hidden);
|
|
|
- m_deletePushButton->setHidden(hidden);
|
|
|
+ m_detailButton->setHidden(hidden);
|
|
|
+ m_deleteButton->setHidden(hidden);
|
|
|
}
|
|
|
|
|
|
void ExpertManageView::showExpertInfo()
|