namespace OCC {
+Q_LOGGING_CATEGORY(lcSystray, "nextcloud.gui.systray")
+
Systray *Systray::_instance = nullptr;
Systray *Systray::instance()
const auto taskbarScreenEdge = taskbarOrientation();
const auto screenRect = currentScreenRect();
+ qCDebug(lcSystray) << "screenRect:" << screenRect;
+ qCDebug(lcSystray) << "taskbarRect:" << taskbarRect;
+ qCDebug(lcSystray) << "taskbarScreenEdge:" << taskbarScreenEdge;
+ qCDebug(lcSystray) << "trayIconCenter:" << trayIconCenter;
+
switch(taskbarScreenEdge) {
case TaskBarPosition::Bottom:
return {
return rect.translated(offset);
}();
+
+ qCDebug(lcSystray) << "taskbarScreenEdge:" << taskbarScreenEdge;
+ qCDebug(lcSystray) << "screenRect:" << screenRect;
+ qCDebug(lcSystray) << "windowRect (reference)" << QRect(topLeft, bottomRight);
+ qCDebug(lcSystray) << "windowRect (adjusted )" << windowRect;
+
return windowRect.topLeft();
}