QtGui/qstyleoption.h File Reference

qstyleoption.h File Reference
#include <QtCore/qvariant.h>
#include <QtGui/qabstractspinbox.h>
#include <QtGui/qicon.h>
#include <QtGui/qmatrix.h>
#include <QtGui/qslider.h>
#include <QtGui/qstyle.h>
#include <QtGui/qtabbar.h>
#include <QtGui/qtabwidget.h>
#include <QtGui/qrubberband.h>
#include <QtGui/qframe.h>
#include <QtCore/qabstractitemmodel.h>

Classes

class  QStyleOption
 
class  QStyleOptionFocusRect
 
class  QStyleOptionFrame
 
class  QStyleOptionFrameV2
 
class  QStyleOptionFrameV3
 
class  QStyleOptionTabWidgetFrame
 
class  QStyleOptionTabWidgetFrameV2
 
class  QStyleOptionTabBarBase
 
class  QStyleOptionTabBarBaseV2
 
class  QStyleOptionHeader
 
class  QStyleOptionButton
 
class  QStyleOptionTab
 
class  QStyleOptionTabV2
 
class  QStyleOptionTabV3
 
class  QStyleOptionToolBar
 
class  QStyleOptionProgressBar
 
class  QStyleOptionProgressBarV2
 
class  QStyleOptionMenuItem
 
class  QStyleOptionQ3ListViewItem
 
class  QStyleOptionQ3DockWindow
 
class  QStyleOptionDockWidget
 
class  QStyleOptionDockWidgetV2
 
class  QStyleOptionViewItem
 
class  QStyleOptionViewItemV2
 
class  QStyleOptionViewItemV3
 
class  QStyleOptionViewItemV4
 
class  QStyleOptionToolBox
 
class  QStyleOptionToolBoxV2
 
class  QStyleOptionRubberBand
 
class  QStyleOptionComplex
 
class  QStyleOptionSlider
 
class  QStyleOptionSpinBox
 
class  QStyleOptionQ3ListView
 
class  QStyleOptionToolButton
 
class  QStyleOptionComboBox
 
class  QStyleOptionTitleBar
 
class  QStyleOptionGroupBox
 
class  QStyleOptionSizeGrip
 
class  QStyleOptionGraphicsItem
 
class  QStyleHintReturn
 
class  QStyleHintReturnMask
 
class  QStyleHintReturnVariant
 

Functions

template<typename T >
qstyleoption_cast (const QStyleOption *opt)
 
template<typename T >
qstyleoption_cast (QStyleOption *opt)
 
template<typename T >
qstyleoption_cast (const QStyleHintReturn *hint)
 
template<typename T >
qstyleoption_cast (QStyleHintReturn *hint)
 
Q_GUI_EXPORT QDebug operator<< (QDebug debug, const QStyleOption::OptionType &optionType)
 
Q_GUI_EXPORT QDebug operator<< (QDebug debug, const QStyleOption &option)
 

Function Documentation

T qstyleoption_cast ( const QStyleOption opt)

Definition at line 885 of file qstyleoption.h.

886 {
887  if (opt && opt->version >= static_cast<T>(0)->Version && (opt->type == static_cast<T>(0)->Type
888  || int(static_cast<T>(0)->Type) == QStyleOption::SO_Default
889  || (int(static_cast<T>(0)->Type) == QStyleOption::SO_Complex
890  && opt->type > QStyleOption::SO_Complex)))
891  return static_cast<T>(opt);
892  return 0;
893 }
T qstyleoption_cast ( QStyleOption opt)

Definition at line 896 of file qstyleoption.h.

897 {
898  if (opt && opt->version >= static_cast<T>(0)->Version && (opt->type == static_cast<T>(0)->Type
899  || int(static_cast<T>(0)->Type) == QStyleOption::SO_Default
900  || (int(static_cast<T>(0)->Type) == QStyleOption::SO_Complex
901  && opt->type > QStyleOption::SO_Complex)))
902  return static_cast<T>(opt);
903  return 0;
904 }
T qstyleoption_cast ( const QStyleHintReturn hint)

Definition at line 944 of file qstyleoption.h.

945 {
946  if (hint && hint->version <= static_cast<T>(0)->Version &&
947  (hint->type == static_cast<T>(0)->Type || int(static_cast<T>(0)->Type) == QStyleHintReturn::SH_Default))
948  return static_cast<T>(hint);
949  return 0;
950 }
T qstyleoption_cast ( QStyleHintReturn hint)

Definition at line 953 of file qstyleoption.h.

954 {
955  if (hint && hint->version <= static_cast<T>(0)->Version &&
956  (hint->type == static_cast<T>(0)->Type || int(static_cast<T>(0)->Type) == QStyleHintReturn::SH_Default))
957  return static_cast<T>(hint);
958  return 0;
959 }
Q_GUI_EXPORT QDebug operator<< ( QDebug  debug,
const QStyleOption::OptionType optionType 
)
Q_GUI_EXPORT QDebug operator<< ( QDebug  debug,
const QStyleOption option 
)

Go to the source code of this file.