BlendSplitter  3.0.0
A Blender-like Qt Widget management library
SwitchingBar Class Reference

A menu bar which is always found on the bottom of SwitchingWidget. More...

#include <SwitchingBar.hpp>

Inheritance diagram for SwitchingBar:
Collaboration diagram for SwitchingBar:

Public Member Functions

void addMenu (QMenu *menu)
 Add a QMenu. More...
 
void addWidget (QWidget *widget)
 Add a QWidget. More...
 

Detailed Description

A menu bar which is always found on the bottom of SwitchingWidget.

This menu bar is similar to the built-in QMenuBar, but can also contain plain QWidgets. The first item on the left is always a combo box for selecting which widget should be displayed in the SwitchingWidget.

Definition at line 20 of file SwitchingBar.hpp.

Member Function Documentation

§ addMenu()

void SwitchingBar::addMenu ( QMenu *  menu)

Add a QMenu.

This function adds a QMenu to the very right of the SwitchingBar. The menu is wrapped in an invisible QMenuBar.

Parameters
menuA pointer to the QMenu to be added

§ addWidget()

void SwitchingBar::addWidget ( QWidget *  widget)

Add a QWidget.

This function adds a QWidget to the very right of the SwitchingBar. The widget is placed in a QHBoxLayout.

Parameters
widgetA pointer to the QWidget to be added

The documentation for this class was generated from the following file: