Fixed toolbar for splitted editors

This commit is contained in:
Lasse Holmstedt
2010-03-15 16:02:38 +01:00
parent 43f9c27b31
commit 1ce34736f7
6 changed files with 51 additions and 18 deletions

View File

@@ -62,7 +62,7 @@ class CORE_EXPORT EditorToolBar : public Utils::StyledBar
public:
explicit EditorToolBar(QWidget *parent = 0);
enum ToolbarCreationFlags { FlagsNone = 0, FlagsIgnoreIEditorToolBar = 1 };
enum ToolbarCreationFlags { FlagsNone = 0, FlagsStandalone = 1 };
/**
* Adds an editor whose state is listened to, so that the toolbar can be kept up to date
@@ -94,10 +94,11 @@ signals:
void closeClicked();
void goBackClicked();
void goForwardClicked();
void listSelectionActivated(int row);
private slots:
void updateEditorListSelection(Core::IEditor *newSelection);
void listSelectionActivated(int row);
void changeActiveEditor(int row);
void listContextMenu(QPoint);
void makeEditorWritable();
@@ -123,9 +124,7 @@ private:
QWidget *m_toolBarPlaceholder;
QWidget *m_defaultToolBar;
bool m_ignoreEditorToolbar;
friend class Internal::EditorView;
bool m_isStandalone;
};
}