1 #ifndef NAVIGATIONBAR_H 2 #define NAVIGATIONBAR_H 36 QAction *
addGroup(QList<QAction*> list,
const QIcon &icon,
const QString &text);
44 QAction *
addGroup(QList<QAction*> list,
const QString &text);
51 void mapGroup(QAction* action, QList<QAction*> list);
94 #endif // NAVIGATIONBAR_H Qt::ToolButtonStyle m_toolStyle
QList< QAction * > m_actions
void setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)
setToolButtonStyle Set the style for the tool buttons
void resized(const QSize &)
resized Signal that the size is changed
void buildUi()
buildUi Construct the layout of the composite GUI control
void addAction(QAction *action)
addAction Add action to the navigation bar
void setSubBar(bool subBar)
setSubBar Set the component be sub-navigation bar
void onSubBarClick(bool)
onSubBarClick Activate the sub-navigation bar
QMap< QAction *, QList< QAction * > > m_groups
The NavigationBar class Custom control for navigation bar.
void mapGroup(QAction *action, QList< QAction * > list)
mapGroup Map the action with group
QAction * addGroup(QList< QAction * > list, const QIcon &icon, const QString &text)
addGroup Add group of actions
NavigationBar(QWidget *parent=0)
NavigationBar Constructor.
void resizeEvent(QResizeEvent *evt)