diff options
author | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-08-31 16:02:52 +0200 |
---|---|---|
committer | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-08-31 16:02:52 +0200 |
commit | b8c4757e74264525e6c0db77cded83af2457d390 (patch) | |
tree | ae0e973212f9a3c6dfc63a247f5a5b156695fa54 | |
parent | 0f0c04d35b5496032f4e4feae876427a8d095f1e (diff) |
Make the QtListController::SelectionBehavior enum public and make it a Q_ENUM.
-rw-r--r-- | src/qlistcontroller.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qlistcontroller.h b/src/qlistcontroller.h index 70d5f09..889efef 100644 --- a/src/qlistcontroller.h +++ b/src/qlistcontroller.h @@ -53,19 +53,20 @@ class QtListControllerPrivate; class Q_ITEMVIEWSNG_EXPORT QtListController : public QObject { Q_OBJECT + Q_ENUMS(SelectionBehavior) Q_PROPERTY(QtListModelInterface* model READ model WRITE setModel) Q_PROPERTY(QtListSelectionManager* selectionManager READ selectionManager WRITE setSelectionManager) Q_PROPERTY(QtGraphicsListView *view READ view WRITE setView) Q_PROPERTY(SelectionBehavior selectionBehavior READ selectionBehavior WRITE setSelectionBehavior) Q_PROPERTY(bool isWheelEnabled READ isWheelEnabled WRITE setWheelEnabled) +public: enum SelectionBehavior { NoSelection, SingleSelection, MultiSelection }; -public: QtListController(QObject *parent = 0); virtual ~QtListController(); |