Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/declarative-plugin/previewitem.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 39 | { | |||
---|---|---|---|---|---|
42 | Q_PROPERTY(KDecoration2::Preview::PreviewBridge *bridge READ bridge WRITE setBridge NOTIFY bridgeChanged) | 42 | Q_PROPERTY(KDecoration2::Preview::PreviewBridge *bridge READ bridge WRITE setBridge NOTIFY bridgeChanged) | ||
43 | Q_PROPERTY(KDecoration2::Preview::Settings *settings READ settings WRITE setSettings NOTIFY settingsChanged) | 43 | Q_PROPERTY(KDecoration2::Preview::Settings *settings READ settings WRITE setSettings NOTIFY settingsChanged) | ||
44 | Q_PROPERTY(KDecoration2::Preview::PreviewClient *client READ client) | 44 | Q_PROPERTY(KDecoration2::Preview::PreviewClient *client READ client) | ||
45 | Q_PROPERTY(KDecoration2::DecorationShadow *shadow READ shadow NOTIFY shadowChanged) | 45 | Q_PROPERTY(KDecoration2::DecorationShadow *shadow READ shadow NOTIFY shadowChanged) | ||
46 | Q_PROPERTY(QColor windowColor READ windowColor WRITE setWindowColor NOTIFY windowColorChanged) | 46 | Q_PROPERTY(QColor windowColor READ windowColor WRITE setWindowColor NOTIFY windowColorChanged) | ||
47 | Q_PROPERTY(bool drawBackground READ isDrawingBackground WRITE setDrawingBackground NOTIFY drawingBackgroundChanged) | 47 | Q_PROPERTY(bool drawBackground READ isDrawingBackground WRITE setDrawingBackground NOTIFY drawingBackgroundChanged) | ||
48 | public: | 48 | public: | ||
49 | PreviewItem(QQuickItem *parent = nullptr); | 49 | PreviewItem(QQuickItem *parent = nullptr); | ||
50 | virtual ~PreviewItem(); | 50 | ~PreviewItem() override; | ||
51 | void paint(QPainter *painter); | 51 | void paint(QPainter *painter) override; | ||
52 | 52 | | |||
53 | KDecoration2::Decoration *decoration() const; | 53 | KDecoration2::Decoration *decoration() const; | ||
54 | void setDecoration(KDecoration2::Decoration *deco); | 54 | void setDecoration(KDecoration2::Decoration *deco); | ||
55 | 55 | | |||
56 | QColor windowColor() const; | 56 | QColor windowColor() const; | ||
57 | void setWindowColor(const QColor &color); | 57 | void setWindowColor(const QColor &color); | ||
58 | 58 | | |||
59 | bool isDrawingBackground() const; | 59 | bool isDrawingBackground() const; | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |