Code refactoring - clean up excess code

This commit is contained in:
Yuriy Puchkov
2020-12-04 10:13:58 +02:00
parent c4845b06aa
commit 97bea32f95
2 changed files with 0 additions and 16 deletions

View File

@@ -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();
}

View File

@@ -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;
};