Quark
0.1
|
A non-parameterized abstract base class for Quark item model menu adapters. More...
#include <AbstractItemModelMenuAdapter.h++>
Public Types | |
enum | Option { InsertAtTop = 1 << 0, Checkable = 1 << 1, Exclusive = 1 << 2 } |
Item model menu adapter options. More... | |
Public Member Functions | |
Q_DECLARE_FLAGS (Options, Option) | |
AbstractItemModelMenuAdapter (const QAbstractItemModel *model, QMenu *menu, Options options=0) | |
Constructor. More... | |
virtual | ~AbstractItemModelMenuAdapter () |
Destructor. More... | |
void | sync () |
Synchronizes the menu with the model. More... | |
A non-parameterized abstract base class for Quark item model menu adapters.
This class should not be subclassed directly.
enum Option |
Item model menu adapter options.
AbstractItemModelMenuAdapter | ( | const QAbstractItemModel * | model, |
QMenu * | menu, | ||
Options | options = 0 |
||
) |
Constructor.
|
virtual |
Destructor.
Q_DECLARE_FLAGS | ( | Options | , |
Option | |||
) |
void sync | ( | ) |
Synchronizes the menu with the model.
This method must be called at least once to populate the menu with any items that may exist in the model.