forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user