aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/rightpane.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-11-16 10:52:41 +0200
committerhjk <hjk121@nokiamail.com>2014-11-26 13:46:38 +0100
commit7f341580412847d325ffa4f7a82d27a763ff598f (patch)
treeaa1f40058022372d26876d8ed6b7649425ab3f69 /src/plugins/coreplugin/rightpane.cpp
parent6804c2117915e84dd37a793ae5c99321acbdd85b (diff)
Core: Cosmetics
* Remove redundant namespace qualifiers * Qt5-ify some signal/slot connections * Replace some using Core::Internal with explicit namespace scopes Change-Id: Id1aae05e2c6fc2992c2716e1f8f9e985c6e56122 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/coreplugin/rightpane.cpp')
-rw-r--r--src/plugins/coreplugin/rightpane.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/rightpane.cpp b/src/plugins/coreplugin/rightpane.cpp
index 1130b4070a..8c870142b5 100644
--- a/src/plugins/coreplugin/rightpane.cpp
+++ b/src/plugins/coreplugin/rightpane.cpp
@@ -30,6 +30,7 @@
#include "rightpane.h"
+#include <coreplugin/imode.h>
#include <coreplugin/modemanager.h>
#include <QSettings>
@@ -49,13 +50,13 @@ RightPanePlaceHolder* RightPanePlaceHolder::current()
return m_current;
}
-RightPanePlaceHolder::RightPanePlaceHolder(Core::IMode *mode, QWidget *parent)
+RightPanePlaceHolder::RightPanePlaceHolder(IMode *mode, QWidget *parent)
:QWidget(parent), m_mode(mode)
{
setLayout(new QVBoxLayout);
layout()->setMargin(0);
- connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*)),
- this, SLOT(currentModeChanged(Core::IMode*)));
+ connect(ModeManager::instance(), &ModeManager::currentModeChanged,
+ this, &RightPanePlaceHolder::currentModeChanged);
}
RightPanePlaceHolder::~RightPanePlaceHolder()
@@ -96,7 +97,7 @@ void RightPanePlaceHolder::applyStoredSize(int width)
// m_current points to the current PlaceHolder, or zero if there
// is no PlaceHolder in this mode
// And that the parent of the RightPaneWidget gets the correct parent
-void RightPanePlaceHolder::currentModeChanged(Core::IMode *mode)
+void RightPanePlaceHolder::currentModeChanged(IMode *mode)
{
if (m_current == this) {
m_current = 0;