QStyleOptionToolButton Class Reference

#include <qstyleoption.h>

Class Description

Definition at line 768 of file qstyleoption.h.

+ Inheritance diagram for QStyleOptionToolButton:

Public Types

enum  StyleOptionType { Type = SO_ToolButton }
 
enum  StyleOptionVersion { Version = 1 }
 
enum  ToolButtonFeature {
  None = 0x00, Arrow = 0x01, Menu = 0x04, MenuButtonPopup = Menu,
  PopupDelay = 0x08, HasMenu = 0x10
}
 
- Public Types inherited from QStyleOptionComplex
enum  StyleOptionType { Type = SO_Complex }
 
enum  StyleOptionVersion { Version = 1 }
 
- 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

 QStyleOptionToolButton ()
 
 QStyleOptionToolButton (const QStyleOptionToolButton &other)
 
- Public Member Functions inherited from QStyleOptionComplex
 QStyleOptionComplex (int version=QStyleOptionComplex::Version, int type=SO_Complex)
 
 QStyleOptionComplex (const QStyleOptionComplex &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)
 
QStyleOptionoperator= (const QStyleOption &other)
 

Public Attributes

ToolButtonFeatures features
 
QIcon icon
 
QSize iconSize
 
QString text
 
Qt::ArrowType arrowType
 
Qt::ToolButtonStyle toolButtonStyle
 
QPoint pos
 
QFont font
 
- Public Attributes inherited from QStyleOptionComplex
QStyle::SubControls subControls
 
QStyle::SubControls activeSubControls
 
- Public Attributes inherited from QStyleOption
int version
 
int type
 
QStyle::State state
 
Qt::LayoutDirection direction
 
QRect rect
 
QFontMetrics fontMetrics
 
QPalette palette
 

Protected Member Functions

 QStyleOptionToolButton (int version)
 

Member Enumeration Documentation

Enumerator
Type 

Definition at line 771 of file qstyleoption.h.

Enumerator
Version 

Definition at line 772 of file qstyleoption.h.

Enumerator
None 
Arrow 
Menu 
MenuButtonPopup 
PopupDelay 
HasMenu 

Definition at line 774 of file qstyleoption.h.

Constructor & Destructor Documentation

Definition at line 788 of file qstyleoption.h.

788 : QStyleOptionComplex(Version, Type) { *this = other; }
QStyleOptionComplex(int version=QStyleOptionComplex::Version, int type=SO_Complex)
QStyleOptionToolButton ( int  version)
protected

Member Data Documentation

ToolButtonFeatures features

Definition at line 778 of file qstyleoption.h.

QIcon icon

Definition at line 779 of file qstyleoption.h.

QSize iconSize

Definition at line 780 of file qstyleoption.h.

QString text

Definition at line 781 of file qstyleoption.h.

Qt::ArrowType arrowType

Definition at line 782 of file qstyleoption.h.

Qt::ToolButtonStyle toolButtonStyle

Definition at line 783 of file qstyleoption.h.

QPoint pos

Definition at line 784 of file qstyleoption.h.

QFont font

Definition at line 785 of file qstyleoption.h.


The documentation for this class was generated from the following file: