Use QActions to fix toolbar extension

Instead of directly adding QToolButtons to the tool bar of the
navigation subwidget, use QActions. This allows the tool bar extension
to show them in a menu when necessary.

The icons are inappropriate for in a menu, however.
This commit is contained in:
Thorbjørn Lindeijer
2009-02-05 12:44:46 +01:00
parent d5560b4bbd
commit 0359ff60f6
2 changed files with 16 additions and 21 deletions

View File

@@ -151,7 +151,7 @@ private:
NavigationWidget *m_parentWidget;
QComboBox *m_navigationComboBox;
QWidget *m_navigationWidget;
QToolBar *m_toolbar;
QToolBar *m_toolBar;
QAction *m_splitAction;
QList<QToolButton *> m_additionalToolBarWidgets;
};