RibbonGalleryItem Class

RibbonGalleryItem class represents one element of the gallery. More...

Header: #include <RibbonGalleryItem>

Public Functions

RibbonGalleryItem()
virtual ~RibbonGalleryItem()
QString caption() const
virtual void draw(QPainter *p, RibbonGallery *gallery, QRect rectItem, bool enabled, bool selected, bool pressed, bool checked)
int getIndex() const
QIcon icon() const
bool isSeparator() const
void setCaption(const QString &caption)
void setIcon(const QIcon &icon)
void setSeparator(bool b)
void setStatusTip(const QString &statusTip)
void setToolTip(const QString &toolTip)
QString statusTip() const
QString toolTip() const

Detailed Description

Member Function Documentation

RibbonGalleryItem::RibbonGalleryItem()

Constructs RibbonGalleryItem.

[virtual noexcept] RibbonGalleryItem::~RibbonGalleryItem()

Destructor of the RibbonGalleryGroup object.

QString RibbonGalleryItem::caption() const

Returns the caption of the item.

See also setCaption().

[virtual] void RibbonGalleryItem::draw(QPainter *p, RibbonGallery *gallery, QRect rectItem, bool enabled, bool selected, bool pressed, bool checked)

Draws the item on painter p.

int RibbonGalleryItem::getIndex() const

Returns the index of this item in the gallery group.

QIcon RibbonGalleryItem::icon() const

Returns the icon of the item.

See also setIcon().

bool RibbonGalleryItem::isSeparator() const

Returns true if the item is the separator.

void RibbonGalleryItem::setCaption(const QString &caption)

Sets the caption of the item.

See also caption().

void RibbonGalleryItem::setIcon(const QIcon &icon)

Sets the icon of the item.

See also icon().

void RibbonGalleryItem::setSeparator(bool b)

Sets the representation for the item as a separator if parameter b is true.

See also isSeparator().

void RibbonGalleryItem::setStatusTip(const QString &statusTip)

Sets the statusTip of the item.

See also statusTip().

void RibbonGalleryItem::setToolTip(const QString &toolTip)

Sets the toolTip of the item.

See also toolTip().

QString RibbonGalleryItem::statusTip() const

Returns the statusTip of the item.

See also setStatusTip().

QString RibbonGalleryItem::toolTip() const

Returns the toolTip of the item.

See also setToolTip().