aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/rightpane.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-03-25 20:00:19 +0100
committerhjk <hjk@theqtcompany.com>2016-04-08 10:38:49 +0000
commit5e47d35fcd8c750afc6d0453165066f969e282c2 (patch)
tree573b5af9c6a8759cb41cc8c4185856846038b201 /src/plugins/coreplugin/rightpane.cpp
parented7d5e0d626505a4880d57738ef0403632ed7014 (diff)
Use Core::Id in ModeManager interface
Makes it more uniform to use and allows placeholder widget creation to be independent of mode creations. Change-Id: I4021bc9db7f8c78f0374c0cc3b3331506959afe4 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/rightpane.cpp')
-rw-r--r--src/plugins/coreplugin/rightpane.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/rightpane.cpp b/src/plugins/coreplugin/rightpane.cpp
index 7b894b6b21..4c139cb284 100644
--- a/src/plugins/coreplugin/rightpane.cpp
+++ b/src/plugins/coreplugin/rightpane.cpp
@@ -45,7 +45,7 @@ RightPanePlaceHolder* RightPanePlaceHolder::current()
return m_current;
}
-RightPanePlaceHolder::RightPanePlaceHolder(IMode *mode, QWidget *parent)
+RightPanePlaceHolder::RightPanePlaceHolder(Id mode, QWidget *parent)
:QWidget(parent), m_mode(mode)
{
setLayout(new QVBoxLayout);
@@ -92,7 +92,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(IMode *mode)
+void RightPanePlaceHolder::currentModeChanged(Id mode)
{
if (m_current == this) {
m_current = 0;