| 1 |
// SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
// SPDX-FileCopyrightText: %{CURRENT_YEAR} %{AUTHOR} <%{EMAIL}> |
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QObject> |
| 7 |
#include <QQmlEngine> |
| 8 |
|
| 9 |
class QQuickWindow; |
| 10 |
|
| 11 |
class App : public QObject |
| 12 |
{ |
| 13 |
Q_OBJECT |
| 14 |
QML_ELEMENT |
| 15 |
QML_SINGLETON |
| 16 |
|
| 17 |
public: |
| 18 |
// Restore current window geometry |
| 19 |
Q_INVOKABLE void restoreWindowGeometry(QQuickWindow *window, const QString &group = QStringLiteral("main")) const; |
| 20 |
// Save current window geometry |
| 21 |
Q_INVOKABLE void saveWindowGeometry(QQuickWindow *window, const QString &group = QStringLiteral("main")) const; |
| 22 |
}; |