Code refactoring - clean up excess code
This commit is contained in:
@@ -137,14 +137,4 @@ void UtilityPanel::initInternalPanel()
|
||||
m_internalPanel->setStyleSheet(
|
||||
QStringLiteral("QScrollArea {background-color: %1}").arg(bgColor.name()));
|
||||
m_internalPanel->hide();
|
||||
|
||||
m_hide = new QPushButton();
|
||||
m_hide->setText(tr("Hide"));
|
||||
m_upLayout->addWidget(m_hide);
|
||||
connect(m_hide, SIGNAL(clicked()), this, SLOT(slotHidePanel()));
|
||||
}
|
||||
|
||||
void UtilityPanel::slotHidePanel()
|
||||
{
|
||||
hide();
|
||||
}
|
||||
|
||||
@@ -38,13 +38,8 @@ public:
|
||||
void hide();
|
||||
void show();
|
||||
|
||||
signals:
|
||||
void mouseEnter();
|
||||
void mouseLeave();
|
||||
|
||||
public slots:
|
||||
void toggle();
|
||||
void slotHidePanel();
|
||||
|
||||
private:
|
||||
void initInternalPanel();
|
||||
@@ -56,5 +51,4 @@ private:
|
||||
QVBoxLayout* m_layout;
|
||||
QPropertyAnimation* m_showAnimation;
|
||||
QPropertyAnimation* m_hideAnimation;
|
||||
QPushButton* m_hide;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user