summaryrefslogtreecommitdiffstats
path: root/src/sdk/aboutapplicationdialog.h
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-01-12 13:58:03 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-01-18 09:21:00 +0200
commit91d4828ed3c18586ed3c3ad2fc083adb0faed676 (patch)
treea443b4a1bcd231cf29ccbf48288bdd560364aade /src/sdk/aboutapplicationdialog.h
parentdf604d105d2cdf28bc9fbd2aa63ed5cef9aaeca2 (diff)
Add "about application" menu and dialog on macOS
Also enable linking qtimageformats as a static plugin on macOS, it is required to read the .icns file to be shown on the dialog. Task-number: QTIFW-2453 Change-Id: Ib776635167a4c90ffa20a91ecc447d2d73f5aeb9 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/sdk/aboutapplicationdialog.h')
-rw-r--r--src/sdk/aboutapplicationdialog.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/sdk/aboutapplicationdialog.h b/src/sdk/aboutapplicationdialog.h
new file mode 100644
index 000000000..5f05aa6d9
--- /dev/null
+++ b/src/sdk/aboutapplicationdialog.h
@@ -0,0 +1,48 @@
+/**************************************************************************
+**
+** Copyright (C) 2022 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the Qt Installer Framework.
+**
+** $QT_BEGIN_LICENSE:GPL-EXCEPT$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+** $QT_END_LICENSE$
+**
+**************************************************************************/
+
+#ifndef ABOUTAPPLICATIONDIALOG_H
+#define ABOUTAPPLICATIONDIALOG_H
+
+#include <QDialog>
+
+namespace QInstaller {
+ class PackageManagerCore;
+}
+
+class AboutApplicationDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit AboutApplicationDialog(QInstaller::PackageManagerCore *core,
+ QWidget *parent = nullptr);
+ ~AboutApplicationDialog() = default;
+};
+
+#endif // ABOUTAPPLICATIONDIALOG_H