more unfinished changes, process tab for dashboard

This commit is contained in:
2026-09-30 14:26:50 +02:00
parent 0bfda04e91
commit 359f832609
98 changed files with 8633 additions and 2983 deletions
+36
View File
@@ -0,0 +1,36 @@
#pragma once
#include <qcursor.h>
#include <qguiapplication.h>
#include <qobject.h>
#include <qqmlintegration.h>
namespace ZShell::internal {
class Cursor : public QObject {
Q_OBJECT
QML_SINGLETON
QML_ELEMENT
public:
Q_INVOKABLE void setOverride(Qt::CursorShape shape) {
if (m_override)
QGuiApplication::changeOverrideCursor(QCursor(shape));
else {
QGuiApplication::setOverrideCursor(QCursor(shape));
m_override = true;
}
}
Q_INVOKABLE void clearOverride() {
if (!m_override) return;
QGuiApplication::restoreOverrideCursor();
m_override = false;
}
private:
bool m_override = false;
};
} // namespace ZShell::internal