bool isRestored() const;
///
- bool isVisibiltyOn() const;
+ bool isVisibilityOn() const;
int visibility() const { return visibility_; }
/// Refresh the contents of the bar.
///
GuiCommandBuffer * commandBuffer() { return command_buffer_; }
- ///
- Action * addItem(ToolbarItem const & item);
+ /// add item to toolbar.
+ /// \param menu : when true, the item is for a menu entry, not a button.
+ Action * addItem(ToolbarItem const & item, bool menu = false);
///
GuiView const & owner() { return owner_; }
///
void updated();
+private Q_SLOTS:
+ void showContextMenu(QPoint pos);
+
private:
// load flags with saved values
void initFlags();