forked from qt-creator/qt-creator
EditorManager: Remove useless method
Change-Id: I87c2d861d88e783bd41f200a76853477d05cce0f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -507,11 +507,6 @@ void EditorManager::updateAutoSave()
|
|||||||
d->m_autoSaveTimer->stop();
|
d->m_autoSaveTimer->stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorToolBar *EditorManager::createToolBar(QWidget *parent)
|
|
||||||
{
|
|
||||||
return new EditorToolBar(parent);
|
|
||||||
}
|
|
||||||
|
|
||||||
void EditorManager::removeEditor(IEditor *editor)
|
void EditorManager::removeEditor(IEditor *editor)
|
||||||
{
|
{
|
||||||
bool lastOneForDocument = false;
|
bool lastOneForDocument = false;
|
||||||
|
|||||||
@@ -95,8 +95,6 @@ public:
|
|||||||
|
|
||||||
static EditorManager *instance();
|
static EditorManager *instance();
|
||||||
|
|
||||||
static EditorToolBar *createToolBar(QWidget *parent = 0);
|
|
||||||
|
|
||||||
enum OpenEditorFlag {
|
enum OpenEditorFlag {
|
||||||
NoFlags = 0,
|
NoFlags = 0,
|
||||||
DoNotChangeCurrentEditor = 1,
|
DoNotChangeCurrentEditor = 1,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ using namespace Core::Internal;
|
|||||||
EditorView::EditorView(SplitterOrView *parentSplitterOrView, QWidget *parent) :
|
EditorView::EditorView(SplitterOrView *parentSplitterOrView, QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
m_parentSplitterOrView(parentSplitterOrView),
|
m_parentSplitterOrView(parentSplitterOrView),
|
||||||
m_toolBar(EditorManager::createToolBar(this)),
|
m_toolBar(new EditorToolBar(this)),
|
||||||
m_container(new QStackedWidget(this)),
|
m_container(new QStackedWidget(this)),
|
||||||
m_infoBarDisplay(new InfoBarDisplay(this)),
|
m_infoBarDisplay(new InfoBarDisplay(this)),
|
||||||
m_statusHLine(new QFrame(this)),
|
m_statusHLine(new QFrame(this)),
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ void FormEditorW::fullInit()
|
|||||||
settings->endGroup();
|
settings->endGroup();
|
||||||
|
|
||||||
m_editorToolBar = createEditorToolBar();
|
m_editorToolBar = createEditorToolBar();
|
||||||
m_toolBar = EditorManager::createToolBar();
|
m_toolBar = new EditorToolBar;
|
||||||
m_toolBar->setToolbarCreationFlags(EditorToolBar::FlagsStandalone);
|
m_toolBar->setToolbarCreationFlags(EditorToolBar::FlagsStandalone);
|
||||||
m_toolBar->setNavigationVisible(false);
|
m_toolBar->setNavigationVisible(false);
|
||||||
m_toolBar->addCenterToolBar(m_editorToolBar);
|
m_toolBar->addCenterToolBar(m_editorToolBar);
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ void DocumentWarningWidget::goToError()
|
|||||||
DesignModeWidget::DesignModeWidget(QWidget *parent) :
|
DesignModeWidget::DesignModeWidget(QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
m_mainSplitter(0),
|
m_mainSplitter(0),
|
||||||
m_toolBar(Core::EditorManager::createToolBar(this)),
|
m_toolBar(new Core::EditorToolBar(this)),
|
||||||
m_crumbleBar(new CrumbleBar(this)),
|
m_crumbleBar(new CrumbleBar(this)),
|
||||||
m_isDisabled(false),
|
m_isDisabled(false),
|
||||||
m_showSidebars(true),
|
m_showSidebars(true),
|
||||||
|
|||||||
Reference in New Issue
Block a user