Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinscreenedges/monitor.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 93 | public: | |||
---|---|---|---|---|---|
95 | ~Corner() override; | 95 | ~Corner() override; | ||
96 | void setActive(bool active); | 96 | void setActive(bool active); | ||
97 | bool active() const; | 97 | bool active() const; | ||
98 | protected: | 98 | protected: | ||
99 | void contextMenuEvent(QGraphicsSceneContextMenuEvent* e) override; | 99 | void contextMenuEvent(QGraphicsSceneContextMenuEvent* e) override; | ||
100 | void mousePressEvent(QGraphicsSceneMouseEvent* e) override; | 100 | void mousePressEvent(QGraphicsSceneMouseEvent* e) override; | ||
101 | void hoverEnterEvent(QGraphicsSceneHoverEvent * e) override; | 101 | void hoverEnterEvent(QGraphicsSceneHoverEvent * e) override; | ||
102 | void hoverLeaveEvent(QGraphicsSceneHoverEvent * e) override; | 102 | void hoverLeaveEvent(QGraphicsSceneHoverEvent * e) override; | ||
103 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override; | 103 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override; | ||
104 | private: | 104 | private: | ||
105 | Monitor* monitor; | 105 | Monitor* monitor; | ||
106 | Plasma::FrameSvg *button; | 106 | Plasma::FrameSvg *button; | ||
107 | bool m_active; | 107 | bool m_active; | ||
108 | bool m_hover; | 108 | bool m_hover; | ||
109 | }; | 109 | }; | ||
110 | 110 | | |||
111 | } // namespace | 111 | } // namespace | ||
112 | 112 | | |||
113 | #endif | 113 | #endif |