![]() |
CopperSpice API
1.8.1
|
The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button. More...
Public Typedefs | |
using | ToolButtonFeatures = QFlags< ToolButtonFeature > |
Public Types | |
enum | StyleOptionType |
enum | StyleOptionVersion |
enum | ToolButtonFeature |
![]() | |
enum | StyleOptionType |
enum | StyleOptionVersion |
![]() | |
enum | OptionType |
enum | StyleOptionType |
enum | StyleOptionVersion |
Public Methods | |
QStyleOptionToolButton () | |
QStyleOptionToolButton (const QStyleOptionToolButton &other) | |
QStyleOptionToolButton & | operator= (const QStyleOptionToolButton &other) = default |
![]() | |
QStyleOptionComplex (const QStyleOptionComplex &other) | |
QStyleOptionComplex (int version=QStyleOptionComplex::Version, int type=SO_Complex) | |
QStyleOptionComplex & | operator= (const QStyleOptionComplex &other) = default |
![]() | |
QStyleOption (const QStyleOption &other) | |
QStyleOption (int version=QStyleOption::Version, int type=SO_Default) | |
~QStyleOption () | |
void | initFrom (const QWidget *widget) |
QStyleOption & | operator= (const QStyleOption &other) |
Additional Inherited Members | |
![]() | |
int | type |
int | version |
![]() | |
T | qstyleoption_cast (const QStyleOption *option) |
T | qstyleoption_cast (QStyleOption *option) |
The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button. QStyleOptionToolButton contains all the information that QStyle functions need to draw QToolButton.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
Typedef for QFlags<ToolButtonFeature>. Refer to QStyleOptionToolButton::ToolButtonFeature for documentation.
This enum is used to hold information about the type of the style option and is defined for each QStyleOption subclass.
Constant | Value | Description |
---|---|---|
QStyleOptionToolButton::Type | SO_ToolButton | The type of style option provided (SO_ToolButton for this class). |
This enum is used to hold information about the version of the style option and is defined for each QStyleOption subclass.
Constant | Value | Description |
---|---|---|
QStyleOptionToolButton::Version | 1 | 1 |
Describes the various features that a tool button can have.
Constant | Value | Description |
---|---|---|
QStyleOptionToolButton::None | 0x00 | A normal tool button. |
QStyleOptionToolButton::Arrow | 0x01 | The tool button is an arrow. |
QStyleOptionToolButton::Menu | 0x04 | The tool button has a menu. |
QStyleOptionToolButton::PopupDelay | 0x08 | There is a delay to showing the menu. |
QStyleOptionToolButton::HasMenu | 0x10 | The button has a popup menu. |
QStyleOptionToolButton::MenuButtonPopup | Menu | The button should display an arrow to indicate that a menu is present. |
QStyleOptionToolButton::QStyleOptionToolButton | ( | ) |
Constructs an empty QStyleOptionToolButton.
|
inline |
Copy constructs a new QStyleOptionToolButton from other.
|
default |
Copy assigns from other and returns a reference to this object.