Changeset View
Changeset View
Standalone View
Standalone View
src/client/plasmawindowmodel.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 63 | enum AdditionalRoles { | |||
---|---|---|---|---|---|
69 | IsMaximized, | 69 | IsMaximized, | ||
70 | IsMinimizable, | 70 | IsMinimizable, | ||
71 | IsMinimized, | 71 | IsMinimized, | ||
72 | IsKeepAbove, | 72 | IsKeepAbove, | ||
73 | IsKeepBelow, | 73 | IsKeepBelow, | ||
74 | VirtualDesktop, | 74 | VirtualDesktop, | ||
75 | IsOnAllDesktops, | 75 | IsOnAllDesktops, | ||
76 | IsDemandingAttention, | 76 | IsDemandingAttention, | ||
77 | SkipTaskbar | 77 | SkipTaskbar, | ||
78 | IsShadable, | ||||
79 | IsShaded | ||||
78 | }; | 80 | }; | ||
graesslin: please add:
@since 5.7 | |||||
79 | 81 | | |||
80 | explicit PlasmaWindowModel(PlasmaWindowManagement *parent); | 82 | explicit PlasmaWindowModel(PlasmaWindowManagement *parent); | ||
81 | virtual ~PlasmaWindowModel(); | 83 | virtual ~PlasmaWindowModel(); | ||
82 | 84 | | |||
83 | virtual QHash<int, QByteArray> roleNames() const; | 85 | virtual QHash<int, QByteArray> roleNames() const; | ||
84 | 86 | | |||
85 | virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | 87 | virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | ||
86 | virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; | 88 | virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; | ||
Show All 31 Lines | |||||
118 | 120 | | |||
119 | /** | 121 | /** | ||
120 | * Sets the geometry of the taskbar entry for the window at the model row | 122 | * Sets the geometry of the taskbar entry for the window at the model row | ||
121 | * relative to a panel in particular. QRectF, intended for use from QML | 123 | * relative to a panel in particular. QRectF, intended for use from QML | ||
122 | * @since 5.5 | 124 | * @since 5.5 | ||
123 | */ | 125 | */ | ||
124 | Q_INVOKABLE void setMinimizedGeometry(int row, Surface *panel, const QRect &geom); | 126 | Q_INVOKABLE void setMinimizedGeometry(int row, Surface *panel, const QRect &geom); | ||
125 | 127 | | |||
128 | /** | ||||
129 | * Requests the window at this model row index have its shaded state toggled. | ||||
130 | * @since 5.7 | ||||
131 | */ | ||||
132 | Q_INVOKABLE void requestToggleShaded(int row); | ||||
126 | 133 | | |||
127 | private: | 134 | private: | ||
128 | class Private; | 135 | class Private; | ||
129 | QScopedPointer<Private> d; | 136 | QScopedPointer<Private> d; | ||
130 | }; | 137 | }; | ||
131 | 138 | | |||
132 | } | 139 | } | ||
133 | } | 140 | } | ||
134 | 141 | | |||
135 | #endif | 142 | #endif |
please add: