RibbonGalleryGroup Class
RibbonGalleryGroup class is a container for the RibbonGalleryItem. More...
Header: | #include <RibbonGalleryGroup> |
Inherits: | QObject |
Public Functions
RibbonGalleryGroup(QObject *parent = Q_NULL) | |
virtual | ~RibbonGalleryGroup() |
RibbonGalleryItem * | addItem(const QString &caption, const QIcon &icon) |
RibbonGalleryItem * | addItem(const QString &caption, const QPixmap &pixmap = QPixmap(), const QColor &transparentColor = QColor()) |
RibbonGalleryItem * | addItemFromMap(const QString &caption, int mapIndex, const QPixmap &map, const QSize &mapSizeImage, const QColor &clrTransparent = QColor()) |
RibbonGalleryItem * | addSeparator(const QString &caption) |
void | appendItem(RibbonGalleryItem *item) |
void | clear() |
void | insertItem(int index, RibbonGalleryItem *item) |
RibbonGalleryItem * | item(int index) const |
int | itemCount() const |
void | remove(int index) |
void | setSize(const QSize &size) |
QSize | size() const |
RibbonGalleryItem * | takeItem(int index) |
Detailed Description
Member Function Documentation
RibbonGalleryGroup::RibbonGalleryGroup(QObject *parent = Q_NULL)
Constructs RibbonGalleryGroup object with the given parent.
[virtual noexcept]
RibbonGalleryGroup::~RibbonGalleryGroup()
Destructor of the RibbonGalleryGroup object.
RibbonGalleryItem *RibbonGalleryGroup::addItem(const QString &caption, const QIcon &icon)
Creates new gallery item with the given caption and icon.
RibbonGalleryItem *RibbonGalleryGroup::addItem(const QString &caption, const QPixmap &pixmap = QPixmap(), const QColor &transparentColor = QColor())
Creates and adds new item to the gallery with caption, pixmap. Additionaly it is possible to specify transparent color transparentColor in the pixmap.
RibbonGalleryItem *RibbonGalleryGroup::addItemFromMap(const QString &caption, int mapIndex, const QPixmap &map, const QSize &mapSizeImage, const QColor &clrTransparent = QColor())
Creates and adds new item to the gallery with caption and pixmap from pixmap map. Parameter mapIndex is a index in the map. Parameter mapItemSize is a size of the one item in the map. Additionaly it is possible to specify transparent color transparentColor in the pixmap.
RibbonGalleryItem *RibbonGalleryGroup::addSeparator(const QString &caption)
Adds separator to the group with given caption and returns reference to them.
void RibbonGalleryGroup::appendItem(RibbonGalleryItem *item)
Adds existing item to the gallery. Note: RibbonGalleryGroup object is assigned as a owner for the item.
void RibbonGalleryGroup::clear()
Clear the collection the item.
void RibbonGalleryGroup::insertItem(int index, RibbonGalleryItem *item)
Inserts existing item to the gallery in pos index. Note: RibbonGalleryGroup object is assigned as a owner for the item.
RibbonGalleryItem *RibbonGalleryGroup::item(int index) const
Returns reference to the RibbonGalleryItem by the given index.
int RibbonGalleryGroup::itemCount() const
Returns the count of the items.
void RibbonGalleryGroup::remove(int index)
Removes the item from the gallery by given index.
void RibbonGalleryGroup::setSize(const QSize &size)
Sets size of the group.
See also size().
QSize RibbonGalleryGroup::size() const
Returns size of the group.
See also setSize().
RibbonGalleryItem *RibbonGalleryGroup::takeItem(int index)
Removes item at index from item list without deleting it