Qt 4.8
Functions
qstyleoption.cpp File Reference
#include "qstyleoption.h"
#include "qapplication.h"
#include "private/qt_mac_p.h"
#include "qmacstyle_mac.h"
#include <qdebug.h>
#include <QtCore/qmath.h>

Go to the source code of this file.

Functions

QDebug operator<< (QDebug debug, const QStyleOption::OptionType &optionType)
 
QDebug operator<< (QDebug debug, const QStyleOption &option)
 

Function Documentation

◆ operator<<() [1/2]

QDebug operator<< ( QDebug  debug,
const QStyleOption::OptionType optionType 
)

Definition at line 6396 of file qstyleoption.cpp.

Referenced by qstyleoption_cast().

6397 {
6398 #if !defined(QT_NO_DEBUG)
6399  switch (optionType) {
6401  debug << "SO_Default"; break;
6403  debug << "SO_FocusRect"; break;
6405  debug << "SO_Button"; break;
6406  case QStyleOption::SO_Tab:
6407  debug << "SO_Tab"; break;
6409  debug << "SO_MenuItem"; break;
6411  debug << "SO_Frame"; break;
6413  debug << "SO_ProgressBar"; break;
6415  debug << "SO_ToolBox"; break;
6417  debug << "SO_Header"; break;
6419  debug << "SO_Q3DockWindow"; break;
6421  debug << "SO_DockWidget"; break;
6423  debug << "SO_Q3ListViewItem"; break;
6425  debug << "SO_ViewItem"; break;
6427  debug << "SO_TabWidgetFrame"; break;
6429  debug << "SO_TabBarBase"; break;
6431  debug << "SO_RubberBand"; break;
6433  debug << "SO_Complex"; break;
6435  debug << "SO_Slider"; break;
6437  debug << "SO_SpinBox"; break;
6439  debug << "SO_ToolButton"; break;
6441  debug << "SO_ComboBox"; break;
6443  debug << "SO_Q3ListView"; break;
6445  debug << "SO_TitleBar"; break;
6447  debug << "SO_CustomBase"; break;
6449  debug << "SO_GroupBox"; break;
6451  debug << "SO_ToolBar"; break;
6453  debug << "SO_ComplexCustomBase"; break;
6455  debug << "SO_SizeGrip"; break;
6457  debug << "SO_GraphicsItem"; break;
6458  }
6459 #else
6460  Q_UNUSED(optionType);
6461 #endif
6462  return debug;
6463 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ operator<<() [2/2]

QDebug operator<< ( QDebug  debug,
const QStyleOption option 
)

Definition at line 6465 of file qstyleoption.cpp.

6466 {
6467 #if !defined(QT_NO_DEBUG)
6468  debug << "QStyleOption(";
6469  debug << QStyleOption::OptionType(option.type);
6470  debug << ',' << (option.direction == Qt::RightToLeft ? "RightToLeft" : "LeftToRight");
6471  debug << ',' << option.state;
6472  debug << ',' << option.rect;
6473  debug << ')';
6474 #else
6475  Q_UNUSED(option);
6476 #endif
6477  return debug;
6478 }
int type
the option type of the style option
Definition: qstyleoption.h:87
QStyle::State state
the style flags that are used when drawing the control
Definition: qstyleoption.h:88
OptionType
This enum is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine th...
Definition: qstyleoption.h:70
Qt::LayoutDirection direction
the text layout direction that should be used when drawing text in the control
Definition: qstyleoption.h:89
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729
QRect rect
the area that should be used for various calculations and painting
Definition: qstyleoption.h:90