diff options
-rw-r--r-- | src/plugins/coreplugin/designmode.cpp | 1 | ||||
-rw-r--r-- | src/plugins/coreplugin/editmode.cpp | 5 | ||||
-rw-r--r-- | src/plugins/debugger/debuggermainwindow.cpp | 4 | ||||
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 2 | ||||
-rw-r--r-- | src/plugins/designer/formeditorw.cpp | 4 | ||||
-rw-r--r-- | src/plugins/help/helpmode.cpp | 1 |
6 files changed, 13 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/designmode.cpp b/src/plugins/coreplugin/designmode.cpp index f3d6590e18..6e778e442e 100644 --- a/src/plugins/coreplugin/designmode.cpp +++ b/src/plugins/coreplugin/designmode.cpp @@ -114,6 +114,7 @@ DesignModePrivate::DesignModePrivate(DesignMode *q, EditorManager *editorManager DesignMode::DesignMode(EditorManager *editorManager) : IMode(), d(new DesignModePrivate(this, editorManager)) { + setObjectName(QLatin1String("DesignMode")); setEnabled(false); ExtensionSystem::PluginManager::instance()->addObject(d->m_coreListener); diff --git a/src/plugins/coreplugin/editmode.cpp b/src/plugins/coreplugin/editmode.cpp index a9403b1584..7c627021f0 100644 --- a/src/plugins/coreplugin/editmode.cpp +++ b/src/plugins/coreplugin/editmode.cpp @@ -53,6 +53,7 @@ EditMode::EditMode(EditorManager *editorManager) : m_splitter(new MiniSplitter), m_rightSplitWidgetLayout(new QVBoxLayout) { + setObjectName(QLatin1String("EditMode")); m_rightSplitWidgetLayout->setSpacing(0); m_rightSplitWidgetLayout->setMargin(0); QWidget *rightSplitWidget = new QWidget; @@ -68,7 +69,9 @@ EditMode::EditMode(EditorManager *editorManager) : MiniSplitter *splitter = new MiniSplitter; splitter->setOrientation(Qt::Vertical); splitter->insertWidget(0, rightPaneSplitter); - splitter->insertWidget(1, new Core::OutputPanePlaceHolder(this, splitter)); + QWidget *outputPane = new Core::OutputPanePlaceHolder(this, splitter); + outputPane->setObjectName(QLatin1String("EditModeOutputPanePlaceHolder")); + splitter->insertWidget(1, outputPane); splitter->setStretchFactor(0, 3); splitter->setStretchFactor(1, 0); diff --git a/src/plugins/debugger/debuggermainwindow.cpp b/src/plugins/debugger/debuggermainwindow.cpp index f29b8cb1be..82b8a8ee05 100644 --- a/src/plugins/debugger/debuggermainwindow.cpp +++ b/src/plugins/debugger/debuggermainwindow.cpp @@ -529,7 +529,9 @@ QWidget *DebuggerMainWindow::createContents(IMode *mode) // Right-side window with editor, output etc. MiniSplitter *mainWindowSplitter = new MiniSplitter; mainWindowSplitter->addWidget(this); - mainWindowSplitter->addWidget(new OutputPanePlaceHolder(mode, mainWindowSplitter)); + QWidget *outputPane = new OutputPanePlaceHolder(mode, mainWindowSplitter); + outputPane->setObjectName(QLatin1String("DebuggerOutputPanePlaceHolder")); + mainWindowSplitter->addWidget(outputPane); mainWindowSplitter->setStretchFactor(0, 10); mainWindowSplitter->setStretchFactor(1, 0); mainWindowSplitter->setOrientation(Qt::Vertical); diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 8ca8958281..5e87bea513 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -507,7 +507,7 @@ static DebuggerEngine *dummyEngine() class DebugMode : public IMode { public: - DebugMode() : m_widget(0) {} + DebugMode() : m_widget(0) { setObjectName(QLatin1String("DebugMode")); } // Make sure the editor manager does not get deleted. ~DebugMode() { EditorManager::instance()->setParent(0); } diff --git a/src/plugins/designer/formeditorw.cpp b/src/plugins/designer/formeditorw.cpp index 9c4ba12cca..86b6a989a6 100644 --- a/src/plugins/designer/formeditorw.cpp +++ b/src/plugins/designer/formeditorw.cpp @@ -337,7 +337,9 @@ void FormEditorW::fullInit() // 'Run' in 'Design' mode emits output. Core::MiniSplitter *splitter = new Core::MiniSplitter(Qt::Vertical); splitter->addWidget(m_editorWidget); - splitter->addWidget(new Core::OutputPanePlaceHolder(m_designMode, splitter)); + QWidget *outputPane = new Core::OutputPanePlaceHolder(m_designMode, splitter); + outputPane->setObjectName(QLatin1String("DesignerOutputPanePlaceHolder")); + splitter->addWidget(outputPane); layout->addWidget(splitter); m_modeWidget->setLayout(layout); diff --git a/src/plugins/help/helpmode.cpp b/src/plugins/help/helpmode.cpp index 5e85f0223f..e98f0b844f 100644 --- a/src/plugins/help/helpmode.cpp +++ b/src/plugins/help/helpmode.cpp @@ -38,6 +38,7 @@ using namespace Help::Internal; HelpMode::HelpMode(QWidget *widget, QObject *parent) : BaseMode(parent) { + setObjectName(QLatin1String("HelpMode")); setDisplayName(tr("Help")); setId(QLatin1String(Constants::ID_MODE_HELP)); setIcon(QIcon(QLatin1String(":/fancyactionbar/images/mode_Reference.png"))); |