#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 () const |
Private Attributes | |
QHash< QAction *, ConfigPage * > | _pages |
Definition at line 26 of file configpagestack.h.
ConfigPageStack::ConfigPageStack | ( | QWidget * | parent = 0 |
) |
void ConfigPageStack::add | ( | ConfigPage * | page, | |
QAction * | action | |||
) |
Adds a configuration page to the stack.
Adds a page to the stack.
Definition at line 29 of file configpagestack.cpp.
References _pages.
void ConfigPageStack::setCurrentPage | ( | ConfigPage * | page | ) |
Sets the current config page and checks its action.
Definition at line 37 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 47 of file configpagestack.cpp.
References setCurrentPage().
QList< ConfigPage * > ConfigPageStack::pages | ( | ) | const |
Returns a list of all pages in the stack. The order of the pages in the returned QList is the same as the order in which the pages were initially added to the stack.
Returns a list of all pages in the stack. The order of the pages in the returned QList is the same as the order in which the pages were initially added to the stack.
Definition at line 63 of file configpagestack.cpp.
References i().
void ConfigPageStack::showPage | ( | QAction * | pageAction | ) | [slot] |
Displays the page associated with the activated action.
Shows the config page associated with the activated action.
Definition at line 54 of file configpagestack.cpp.
References _pages.
QHash<QAction*, ConfigPage*> ConfigPageStack::_pages [private] |
Maps an action to a config page.
Definition at line 52 of file configpagestack.h.
Referenced by add(), setCurrentPage(), and showPage().