RibbonBackstageButton Class

Class RibbonBackstageButton used to display buttons onto backstage page. Buttons can be presented as tabs, ordinary buttons or flat buttons. The button has apropriate style and look-and-feel for the backstageview concept. More...

Header: #include <RibbonBackstageButton>
Inherits: QToolButton

Public Functions

RibbonBackstageButton(QWidget *parent)
virtual ~RibbonBackstageButton()
void setTabStyle(bool style)
bool tabStyle() const

Reimplemented Public Functions

virtual QSize sizeHint() const override

Reimplemented Protected Functions

virtual bool event(QEvent *event) override
virtual void paintEvent(QPaintEvent *event) override

Detailed Description

Member Function Documentation

RibbonBackstageButton::RibbonBackstageButton(QWidget *parent)

Constructs RibbonBackstageButton object with the given parent.

[virtual noexcept] RibbonBackstageButton::~RibbonBackstageButton()

Destructor of the RibbonBackstageButton object.

[override virtual protected] bool RibbonBackstageButton::event(QEvent *event)

Reimplements: QToolButton::event(QEvent *event).

[override virtual protected] void RibbonBackstageButton::paintEvent(QPaintEvent *event)

Reimplements: QToolButton::paintEvent(QPaintEvent *event).

void RibbonBackstageButton::setTabStyle(bool style)

Sets the style for a button that allows you to use button as a tab.

Note: Setter function for property tabStyle.

See also tabStyle().

[override virtual] QSize RibbonBackstageButton::sizeHint() const

Reimplements: QToolButton::sizeHint() const.

bool RibbonBackstageButton::tabStyle() const

Returns true if the button is used as a tab.

Note: Getter function for property tabStyle.

See also setTabStyle().