diff options
author | Jörgen Scheibengruber <jorgen.scheibengruber@nokia.com> | 2010-05-26 14:10:54 +0300 |
---|---|---|
committer | Tomas Junnonen <tomas.junnonen@nokia.com> | 2010-05-27 16:22:52 +0300 |
commit | 6ab862a06b6192670fef5ec2ea07d215c4d327ca (patch) | |
tree | cd202d7d31b1f6a88bcec50f7d3cd9bf8bc8761b /src/corelib/widgets/mcontentitemmodel.h | |
parent | fb08b70f653fc883ce7808a1b3dd9d1149d31222 (diff) |
Fixes: NB#163496 - Support setting content-item images via theme-ids
RevBy: Marcin, Tomas
Details: Allow setting the optional Image and the size of the icons
Diffstat (limited to 'src/corelib/widgets/mcontentitemmodel.h')
-rw-r--r-- | src/corelib/widgets/mcontentitemmodel.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/corelib/widgets/mcontentitemmodel.h b/src/corelib/widgets/mcontentitemmodel.h index 6a182ac5..4e852bd6 100644 --- a/src/corelib/widgets/mcontentitemmodel.h +++ b/src/corelib/widgets/mcontentitemmodel.h @@ -75,11 +75,25 @@ public: */ M_MODEL_PROPERTY(QImage, itemImage, ItemImage, false, QImage()) - M_MODEL_PROPERTY(QImage, itemQImage, ItemQImage, false, QImage()) + /*! + \property MContentItemModel::itemImageID + \brief Item thumbnail theme ID. + \sa MContentItemView + */ M_MODEL_PROPERTY(QString, itemImageID, ItemImageID, true, QString()) /*! + \property MContentItemModel::itemImageSize + \brief Contains size of the thumbnail (set thumbnail from theme using itemImageID). + + \sa MContentItemView + */ + M_MODEL_PROPERTY(QSize, itemImageSize, ItemImageSize, true, QSize()) + + M_MODEL_PROPERTY(QImage, itemQImage, ItemQImage, false, QImage()) + + /*! \property MContentItemModel::selected \brief Contains selection status of item. */ @@ -98,6 +112,22 @@ public: M_MODEL_PROPERTY(QImage, optionalImage, OptionalImage, false, QImage()) /*! + \property MContentItemModel::optionalImageID + \brief Contains theme ID of optional icon on the right-hand side. + + \sa MContentItemView + */ + M_MODEL_PROPERTY(QString, optionalImageID, OptionalImageID, true, QString()) + + /*! + \property MContentItemModel::optionalImageSize + \brief Contains size of the optional icon (set optional icon from theme with optionalImageID). + + \sa MContentItemView + */ + M_MODEL_PROPERTY(QSize, optionalImageSize, OptionalImageSize, true, QSize()) + + /*! \property MContentItemModel::additionalItem \brief MWidget as e.g. progress bar, visible below the title. In case there is already a subtitle it will be replaced. |