Qt Utilities: aboutdialog/aboutdialog.h Source File

Qt Utilities 6.19.1 Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models

Loading...
Searching...
No Matches
aboutdialog.h
Go to the documentation of this file.
1#ifndef DIALOGS_ABOUTDIALOG_H
2#define DIALOGS_ABOUTDIALOG_H
3
4#include "../global.h"
5
6#include <QDialog>
7
8#include <memory>
9
10QT_FORWARD_DECLARE_CLASS(QGraphicsScene)
11
12namespace QtUtilities {
13
14 namespace Ui {
15class AboutDialog;
16}
17
18 class QT_UTILITIES_EXPORT AboutDialog : public QDialog {
19 Q_OBJECT
20
21public:
22 explicit AboutDialog(QWidget *parent, const QString &applicationName, const QString &creator, const QString &version,
23 const QString &website = QString(), const QString &description = QString(), const QImage &image = QImage());
24 explicit AboutDialog(QWidget *parent, const QString &applicationName, const QString &creator, const QString &version,
25 const std::vector<const char *> &dependencyVersions, const QString &website = QString(), const QString &description = QString(),
26 const QImage &image = QImage());
27 explicit AboutDialog(QWidget *parent, const QString &website = QString(), const QString &description = QString(), const QImage &image = QImage());
28 ~AboutDialog() override;
29
30Q_SIGNALS:
31 void retranslationRequired();
32
33protected:
34 bool event(QEvent *event) override;
35
36private Q_SLOTS:
37 void linkActivated(const QString &link);
38
39private:
40 std::unique_ptr<Ui::AboutDialog> m_ui;
41 QGraphicsScene *m_iconScene;
42};
43} // namespace QtUtilities
44
45#endif // DIALOGS_ABOUTDIALOG_H
QtUtilities::AboutDialog
The AboutDialog class provides a simple about dialog.
Definition aboutdialog.h:18
QtUtilities::AboutDialog::AboutDialog
AboutDialog(QWidget *parent, const QString &applicationName, const QString &creator, const QString &version, const QString &website=QString(), const QString &description=QString(), const QImage &image=QImage())
Constructs an about dialog with the specified information.
Definition aboutdialog.cpp:109
QtUtilities::AboutDialog::retranslationRequired
void retranslationRequired()
QtUtilities::AboutDialog::event
bool event(QEvent *event) override
Definition aboutdialog.cpp:131
global.h
QT_UTILITIES_EXPORT
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.
Definition global.h:14
QtUtilities::Ui
Definition aboutdialog.h:14
QtUtilities
!
Definition trylocker.h:8