Changeset View
Changeset View
Standalone View
Standalone View
plugin/kquickstyleitem_p.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | #include <QtQuick/qquickitem.h> | 46 | #include <QtQuick/qquickitem.h> | ||
47 | #include <QtQuick/qquickimageprovider.h> | 47 | #include <QtQuick/qquickimageprovider.h> | ||
48 | #include "kquickpadding_p.h" | 48 | #include "kquickpadding_p.h" | ||
49 | #include <QPointer> | 49 | #include <QPointer> | ||
50 | 50 | | |||
51 | class QWidget; | 51 | class QWidget; | ||
52 | class QStyleOption; | 52 | class QStyleOption; | ||
53 | 53 | | |||
54 | namespace Kirigami { | ||||
55 | class PlatformTheme; | ||||
56 | } | ||||
57 | | ||||
54 | class QQuickTableRowImageProvider1 : public QQuickImageProvider | 58 | class QQuickTableRowImageProvider1 : public QQuickImageProvider | ||
55 | { | 59 | { | ||
56 | public: | 60 | public: | ||
57 | QQuickTableRowImageProvider1() | 61 | QQuickTableRowImageProvider1() | ||
58 | : QQuickImageProvider(QQuickImageProvider::Pixmap) {} | 62 | : QQuickImageProvider(QQuickImageProvider::Pixmap) {} | ||
59 | QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize); | 63 | QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize); | ||
60 | }; | 64 | }; | ||
61 | 65 | | |||
▲ Show 20 Lines • Show All 203 Lines • ▼ Show 20 Line(s) | 265 | protected: | |||
265 | bool eventFilter(QObject *watched, QEvent *event) override; | 269 | bool eventFilter(QObject *watched, QEvent *event) override; | ||
266 | 270 | | |||
267 | private: | 271 | private: | ||
268 | const char* classNameForItem() const; | 272 | const char* classNameForItem() const; | ||
269 | QSize sizeFromContents(int width, int height); | 273 | QSize sizeFromContents(int width, int height); | ||
270 | qreal baselineOffset(); | 274 | qreal baselineOffset(); | ||
271 | 275 | | |||
272 | protected: | 276 | protected: | ||
277 | Kirigami::PlatformTheme *m_theme = nullptr; | ||||
273 | QStyleOption *m_styleoption; | 278 | QStyleOption *m_styleoption; | ||
274 | QPointer<QQuickItem> m_control; | 279 | QPointer<QQuickItem> m_control; | ||
275 | Type m_itemType; | 280 | Type m_itemType; | ||
276 | 281 | | |||
277 | QString m_type; | 282 | QString m_type; | ||
278 | QString m_text; | 283 | QString m_text; | ||
279 | QString m_activeControl; | 284 | QString m_activeControl; | ||
280 | QVariantMap m_hints; | 285 | QVariantMap m_hints; | ||
Show All 34 Lines |