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>
This commit is contained in:
Orgad Shaneh
2014-11-16 10:52:41 +02:00
committed by hjk
parent 6804c21179
commit 7f34158041
105 changed files with 390 additions and 379 deletions

View File

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