Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtWidgets/qcommonstyle.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QCOMMONSTYLE_H
0005 #define QCOMMONSTYLE_H
0006 
0007 #include <QtWidgets/qtwidgetsglobal.h>
0008 #include <QtWidgets/qstyle.h>
0009 
0010 QT_BEGIN_NAMESPACE
0011 
0012 class QCommonStylePrivate;
0013 
0014 class Q_WIDGETS_EXPORT QCommonStyle: public QStyle
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     QCommonStyle();
0020     ~QCommonStyle();
0021 
0022     void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p,
0023                        const QWidget *w = nullptr) const override;
0024     void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p,
0025                      const QWidget *w = nullptr) const override;
0026     QRect subElementRect(SubElement r, const QStyleOption *opt, const QWidget *widget = nullptr) const override;
0027     void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p,
0028                             const QWidget *w = nullptr) const override;
0029     SubControl hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex *opt,
0030                                      const QPoint &pt, const QWidget *w = nullptr) const override;
0031     QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc,
0032                          const QWidget *w = nullptr) const override;
0033     QSize sizeFromContents(ContentsType ct, const QStyleOption *opt,
0034                            const QSize &contentsSize, const QWidget *widget = nullptr) const override;
0035 
0036     int pixelMetric(PixelMetric m, const QStyleOption *opt = nullptr, const QWidget *widget = nullptr) const override;
0037 
0038     int styleHint(StyleHint sh, const QStyleOption *opt = nullptr, const QWidget *w = nullptr,
0039                   QStyleHintReturn *shret = nullptr) const override;
0040 
0041     QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *opt = nullptr,
0042                        const QWidget *widget = nullptr) const override;
0043     QPixmap standardPixmap(StandardPixmap sp, const QStyleOption *opt = nullptr,
0044                            const QWidget *widget = nullptr) const override;
0045 
0046     QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap,
0047                                 const QStyleOption *opt) const override;
0048     int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2,
0049                       Qt::Orientation orientation, const QStyleOption *option = nullptr,
0050                       const QWidget *widget = nullptr) const override;
0051 
0052     void polish(QPalette &) override;
0053     void polish(QApplication *app) override;
0054     void polish(QWidget *widget) override;
0055     void unpolish(QWidget *widget) override;
0056     void unpolish(QApplication *application) override;
0057 
0058 protected:
0059     QCommonStyle(QCommonStylePrivate &dd);
0060 
0061 private:
0062     Q_DECLARE_PRIVATE(QCommonStyle)
0063     Q_DISABLE_COPY(QCommonStyle)
0064 };
0065 
0066 QT_END_NAMESPACE
0067 
0068 #endif // QCOMMONSTYLE_H