#include <configpagestack.h>
Public Slots | |
| void | showPage (QAction *pageAction) |
Public Member Functions | |
| ConfigPageStack (QWidget *parent=0) | |
| void | add (ConfigPage *page, QAction *action) |
| void | setCurrentPage (ConfigPage *page) |
| void | setCurrentIndex (int index) |
| QList< ConfigPage * > | pages () |
Private Attributes | |
| QHash< QAction *, ConfigPage * > | _pages |
Definition at line 37 of file configpagestack.h.
| ConfigPageStack::ConfigPageStack | ( | QWidget * | parent = 0 |
) |
Constructor.
Definition at line 32 of file configpagestack.cpp.
| void ConfigPageStack::add | ( | ConfigPage * | page, | |
| QAction * | action | |||
| ) |
Adds a configuration page to the stack.
Definition at line 39 of file configpagestack.cpp.
References _pages.
| void ConfigPageStack::setCurrentPage | ( | ConfigPage * | page | ) |
Sets the current config page and checks its action.
Definition at line 47 of file configpagestack.cpp.
References _pages.
Referenced by setCurrentIndex().
| void ConfigPageStack::setCurrentIndex | ( | int | index | ) |
Sets the current config page index and checks its action.
Definition at line 57 of file configpagestack.cpp.
References setCurrentPage().
| QList<ConfigPage*> ConfigPageStack::pages | ( | ) | [inline] |
Returns a list of all pages in the stack.
Definition at line 53 of file configpagestack.h.
References _pages.
| void ConfigPageStack::showPage | ( | QAction * | pageAction | ) | [slot] |
Displays the page associated with the activated action.
Definition at line 64 of file configpagestack.cpp.
References _pages.
QHash<QAction*, ConfigPage*> ConfigPageStack::_pages [private] |
Maps an action to a config page.
Definition at line 61 of file configpagestack.h.
Referenced by add(), pages(), setCurrentPage(), and showPage().
1.5.1