#include <qstyleoption.h>
Definition at line 435 of file qstyleoption.h.
Public Types | |
enum | StyleOptionType { Type = SO_MenuItem } |
enum | StyleOptionVersion { Version = 1 } |
enum | MenuItemType { Normal, DefaultItem, Separator, SubMenu, Scroller, TearOff, Margin, EmptyArea } |
enum | CheckType { NotCheckable, Exclusive, NonExclusive } |
Public Types inherited from QStyleOption | |
enum | OptionType { SO_Default, SO_FocusRect, SO_Button, SO_Tab, SO_MenuItem, SO_Frame, SO_ProgressBar, SO_ToolBox, SO_Header, SO_Q3DockWindow, SO_DockWidget, SO_Q3ListViewItem, SO_ViewItem, SO_TabWidgetFrame, SO_TabBarBase, SO_RubberBand, SO_ToolBar, SO_GraphicsItem, SO_Complex = 0xf0000, SO_Slider, SO_SpinBox, SO_ToolButton, SO_ComboBox, SO_Q3ListView, SO_TitleBar, SO_GroupBox, SO_SizeGrip, SO_CustomBase = 0xf00, SO_ComplexCustomBase = 0xf000000 } |
enum | StyleOptionType { Type = SO_Default } |
enum | StyleOptionVersion { Version = 1 } |
Public Member Functions | |
QStyleOptionMenuItem () | |
QStyleOptionMenuItem (const QStyleOptionMenuItem &other) | |
Public Member Functions inherited from QStyleOption | |
QStyleOption (int version=QStyleOption::Version, int type=SO_Default) | |
QStyleOption (const QStyleOption &other) | |
~QStyleOption () | |
void | init (const QWidget *w) |
void | initFrom (const QWidget *w) |
QStyleOption & | operator= (const QStyleOption &other) |
Public Attributes | |
MenuItemType | menuItemType |
CheckType | checkType |
bool | checked |
bool | menuHasCheckableItems |
QRect | menuRect |
QString | text |
QIcon | icon |
int | maxIconWidth |
int | tabWidth |
QFont | font |
Public Attributes inherited from QStyleOption | |
int | version |
int | type |
QStyle::State | state |
Qt::LayoutDirection | direction |
QRect | rect |
QFontMetrics | fontMetrics |
QPalette | palette |
Protected Member Functions | |
QStyleOptionMenuItem (int version) | |
enum StyleOptionType |
enum StyleOptionVersion |
enum MenuItemType |
Enumerator | |
---|---|
Normal | |
DefaultItem | |
Separator | |
SubMenu | |
Scroller | |
TearOff | |
Margin | |
EmptyArea |
Definition at line 441 of file qstyleoption.h.
enum CheckType |
|
inline |
Definition at line 457 of file qstyleoption.h.
|
protected |
MenuItemType menuItemType |
Definition at line 445 of file qstyleoption.h.
CheckType checkType |
Definition at line 446 of file qstyleoption.h.
bool checked |
Definition at line 447 of file qstyleoption.h.
bool menuHasCheckableItems |
Definition at line 448 of file qstyleoption.h.
QRect menuRect |
Definition at line 449 of file qstyleoption.h.
QString text |
Definition at line 450 of file qstyleoption.h.
QIcon icon |
Definition at line 451 of file qstyleoption.h.
int maxIconWidth |
Definition at line 452 of file qstyleoption.h.
int tabWidth |
Definition at line 453 of file qstyleoption.h.
QFont font |
Definition at line 454 of file qstyleoption.h.