Warning, file /network/tokodon/src/utils/windowcontroller.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com> 0002 // SPDX-License-Identifier: LGPL-2.0-or-later 0003 0004 #pragma once 0005 0006 #include <QQuickWindow> 0007 0008 class Identity; 0009 class Post; 0010 0011 class WindowController : public QObject 0012 { 0013 Q_OBJECT 0014 QML_ELEMENT 0015 QML_SINGLETON 0016 0017 public: 0018 void setWindow(QQuickWindow *window); 0019 0020 void restoreGeometry(); 0021 Q_INVOKABLE void saveGeometry(); 0022 0023 private: 0024 QQuickWindow *m_window = nullptr; 0025 };