42 #ifndef QCOMMONSTYLE_P_H 43 #define QCOMMONSTYLE_P_H 71 #ifndef QT_NO_ITEMVIEWS 76 #ifndef QT_NO_ITEMVIEWS 83 QRect *pixmapRect,
QRect *textRect,
bool sizehint)
const;
89 return cachedOption && (option.
rect == cachedOption->
rect 101 && option.
text == cachedOption->
text 113 #endif //QCOMMONSTYLE_P_H The QPainter class performs low-level painting on widgets and other paint devices.
bool isViewItemCached(const QStyleOptionViewItemV4 &option) const
QFont font
the font used for the item
Qt::Alignment decorationAlignment
the alignment of the decoration for the item
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QIcon icon
The icon (if any) to be drawn in the view item.
QStyle::State state
the style flags that are used when drawing the control
The QStyleOptionViewItemV4 class is used to describe the parameters necessary for drawing a frame in ...
Position decorationPosition
the position of the decoration for the item
#define QT_BEGIN_NAMESPACE
This macro expands to.
QIcon tabBarcloseButtonIcon
void tabLayout(const QStyleOptionTabV3 *opt, const QWidget *widget, QRect *textRect, QRect *pixmapRect) const
ViewItemFeatures features
a bitwise OR of the features that describe this view item
void viewItemDrawText(QPainter *p, const QStyleOptionViewItemV4 *option, const QRect &rect) const
bool isNull() const
Returns true if the icon is empty; otherwise returns false.
The QStringList class provides a list of strings.
void viewItemLayout(const QStyleOptionViewItemV4 *opt, QRect *checkRect, QRect *pixmapRect, QRect *textRect, bool sizehint) const
Set sizehint to false to layout the elements inside opt->rect.
ViewItemPosition viewItemPosition
Gives the position of this view item relative to other items.
#define Q_DECLARE_PUBLIC(Class)
QSize viewItemSize(const QStyleOptionViewItemV4 *option, int role) const
QModelIndex index
The model index that is to be drawn.
Qt::Alignment displayAlignment
the alignment of the display value for the item
The QCommonStyle class encapsulates the common Look and Feel of a GUI.
QSize decorationSize
the size of the decoration for the item
The QStyleOptionTabV3 class is used to describe the parameters necessary for drawing a tabs in Qt 4...
Qt::LayoutDirection direction
the text layout direction that should be used when drawing text in the control
The QRect class defines a rectangle in the plane using integer precision.
QStyleOptionViewItemV4 * cachedOption
The QSize class defines the size of a two-dimensional object using integer point precision.
QRect rect
the area that should be used for various calculations and painting
QString text
The text (if any) to be drawn in the view item.
The QIcon class provides scalable icons in different modes and states.