|
| | Sidebar (QWidget *const parent, SidebarSplitter *const sp, Qt::Edge side=Qt::LeftEdge, bool minimizedDefault=false) |
| | Creates a new sidebar.
|
| |
| void | activeNextTab () |
| | Activates a next tab from current one.
|
| |
| void | activePreviousTab () |
| | Activates a previous tab from current one.
|
| |
| void | appendTab (QWidget *const w, const QIcon &pic, const QString &title) |
| | Appends a new tab to the sidebar.
|
| |
|
void | backup () |
| | Hide sidebar and backup minimized state.
|
| |
| void | backup (const QList< QWidget * > &thirdWidgetsToBackup, QList< int > *const sizes) |
| | Hide sidebar and backup minimized state.
|
| |
|
void | deleteTab (QWidget *const w) |
| | Deletes a tab from the tabbar.
|
| |
|
void | expand () |
| | Redisplays the whole sidebar.
|
| |
|
QWidget * | getActiveTab () const |
| | Returns the currently activated tab, or 0 if no tab is active.
|
| |
|
bool | isExpanded () const |
| | Return the visible status of current sidebar tab.
|
| |
|
void | restore () |
| | Show sidebar and restore minimized state.
|
| |
| void | restore (const QList< QWidget * > &thirdWidgetsToRestore, const QList< int > &sizes) |
| | Show sidebar and restore minimized state.
|
| |
|
void | setActiveTab (QWidget *const w) |
| | Activates a tab.
|
| |
|
void | shrink () |
| | Hides the sidebar (display only the activation buttons)
|
| |
|
SidebarSplitter * | splitter () const |
| |
|
| DMultiTabBar (Qt::Edge pos, QWidget *const parent=nullptr) |
| |
| void | appendButton (const QIcon &pic, int id=-1, QMenu *const popup=nullptr, const QString ¬_used_yet=QString()) |
| | append a new button to the button area.
|
| |
| void | appendTab (const QIcon &pic, int id=-1, const QString &text=QString()) |
| | append a new tab to the tab area.
|
| |
|
DMultiTabBarButton * | button (int id) const |
| | get a pointer to a button within the button area identified by its ID
|
| |
|
bool | isTabRaised (int id) const |
| | return the state of a tab, identified by its ID
|
| |
| Qt::Edge | position () const |
| | get the tabbar position.
|
| |
|
void | removeButton (int id) |
| | remove a button with the given ID
|
| |
|
void | removeTab (int id) |
| | remove a tab with a given ID
|
| |
| void | setPosition (Qt::Edge pos) |
| | set the real position of the widget.
|
| |
|
void | setStyle (TextStyle style) |
| | set the display style of the tabs
|
| |
| void | setTab (int id, bool state) |
| | set a tab to "raised"
|
| |
|
DMultiTabBarTab * | tab (int id) const |
| | get a pointer to a tab within the tab area, identified by its ID
|
| |
| TextStyle | tabStyle () const |
| | get the display style of the tabs
|
| |
| | StateSavingObject (QObject *const host) |
| | Constructor.
|
| |
|
virtual | ~StateSavingObject () |
| | Destructor.
|
| |
| StateSavingDepth | getStateSavingDepth () const |
| | Returns the depth used for state saving or loading.
|
| |
|
void | loadState () |
| | Invokes loading the class' state.
|
| |
|
void | saveState () |
| | Invokes saving the class' state.
|
| |
| virtual void | setConfigGroup (const KConfigGroup &group) |
| | Sets a dedicated config group that will be used to store and reload the state from.
|
| |
| virtual void | setEntryPrefix (const QString &prefix) |
| | Define a prefix that will be used for every entry in the config group.
|
| |
| void | setStateSavingDepth (const StateSavingDepth depth) |
| | Sets the depth used for state saving or loading.
|
| |
Since this class derives from StateSavingObject, you can call StateSavingObject::loadState() and StateSavingObject::saveState() for loading/saving of settings. However, if you use multiple sidebar instances in your program, you have to remember to either call QObject::setObjectName(), StateSavingObject::setEntryPrefix() or StateSavingObject::setConfigGroup() first.