From 97bea32f950d3198a707569c444db4597f394dda Mon Sep 17 00:00:00 2001 From: Yuriy Puchkov Date: Fri, 4 Dec 2020 10:13:58 +0200 Subject: [PATCH] Code refactoring - clean up excess code --- src/widgets/panel/utilitypanel.cpp | 10 ---------- src/widgets/panel/utilitypanel.h | 6 ------ 2 files changed, 16 deletions(-) diff --git a/src/widgets/panel/utilitypanel.cpp b/src/widgets/panel/utilitypanel.cpp index ac392d4c..1068f906 100644 --- a/src/widgets/panel/utilitypanel.cpp +++ b/src/widgets/panel/utilitypanel.cpp @@ -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(); } diff --git a/src/widgets/panel/utilitypanel.h b/src/widgets/panel/utilitypanel.h index 7a340bf9..7486a347 100644 --- a/src/widgets/panel/utilitypanel.h +++ b/src/widgets/panel/utilitypanel.h @@ -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; };