Preview task-group selections until Meta is released

This commit is contained in:
ajp_anton
2026-09-11 10:59:54 +00:00
parent ccd0161398
commit 0ec628e786
18 changed files with 867 additions and 21 deletions
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: MIT
#pragma once
#include <QObject>
#include <QRectF>
class TaskbarGeometry : public QObject
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "se.ajpanton.PlasmaTaskGroupShortcuts.TaskbarGeometry")
public:
explicit TaskbarGeometry(QObject *parent = nullptr);
~TaskbarGeometry() override;
void request(const QString &uuid);
void cancel();
Q_SIGNALS:
Q_SCRIPTABLE void lookup(int serial, const QString &uuid);
void received(const QRectF &geometry);
public Q_SLOTS:
Q_SCRIPTABLE void bridgeReady();
Q_SCRIPTABLE void complete(int serial, double x, double y, double width, double height);
private:
int m_serial = 0;
bool m_ready = false;
bool m_loaded = false;
QString m_uuid;
};