Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-07-28 14:51:39 +0300
committerHannah von Reth <vonreth@kde.org>2020-08-18 18:52:33 +0300
commita708de042c2f83bb9d424196aaa61cabb13d1fa8 (patch)
treedef33921542102b493cbc0a62ab85b7b9c1665e3 /src/gui/application.h
parentc4a78e7bcf863161b51e3f8f0658f656c90c9b70 (diff)
Minimize main window instead of dialog
Diffstat (limited to 'src/gui/application.h')
-rw-r--r--src/gui/application.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/application.h b/src/gui/application.h
index 0cd40deca..1836cac4f 100644
--- a/src/gui/application.h
+++ b/src/gui/application.h
@@ -148,6 +148,13 @@ private:
QScopedPointer<FolderMan> _folderManager;
};
+inline Application *ocApp()
+{
+ auto instance = qobject_cast<Application *>(qApp);
+ OC_ENFORCE(instance);
+ return instance;
+}
+
} // namespace OCC
#endif // APPLICATION_H