Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/systemtray.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 189 | if (QScreen *screen = appletInterface->window()->screen()) { | |||
---|---|---|---|---|---|
191 | 191 | | |||
192 | pos = QPoint(qBound(geo.left(), (int)pos.x(), geo.right() - desktopMenu->width()), | 192 | pos = QPoint(qBound(geo.left(), (int)pos.x(), geo.right() - desktopMenu->width()), | ||
193 | qBound(geo.top(), (int)pos.y(), geo.bottom() - desktopMenu->height())); | 193 | qBound(geo.top(), (int)pos.y(), geo.bottom() - desktopMenu->height())); | ||
194 | } | 194 | } | ||
195 | 195 | | |||
196 | desktopMenu->popup(pos.toPoint()); | 196 | desktopMenu->popup(pos.toPoint()); | ||
197 | } | 197 | } | ||
198 | 198 | | |||
199 | Q_INVOKABLE QString SystemTray::plasmoidCategory(QQuickItem *appletInterface) const | 199 | QString SystemTray::plasmoidCategory(QQuickItem *appletInterface) const | ||
200 | { | 200 | { | ||
201 | if (!appletInterface) { | 201 | if (!appletInterface) { | ||
202 | return "UnknownCategory"; | 202 | return "UnknownCategory"; | ||
203 | } | 203 | } | ||
204 | 204 | | |||
205 | Plasma::Applet *applet = appletInterface->property("_plasma_applet").value<Plasma::Applet*>(); | 205 | Plasma::Applet *applet = appletInterface->property("_plasma_applet").value<Plasma::Applet*>(); | ||
206 | if (!applet || !applet->pluginMetaData().isValid()) { | 206 | if (!applet || !applet->pluginMetaData().isValid()) { | ||
207 | return "UnknownCategory"; | 207 | return "UnknownCategory"; | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |