diff options
author | ConfuSomu | 2024-01-05 14:58:51 +0100 |
---|---|---|
committer | ConfuSomu | 2024-01-05 14:58:51 +0100 |
commit | 6a07ef99d9f98b1db4fad91b3cd69e6146c1f01e (patch) | |
tree | 760dc8478dd6868a97cb5ee311a3f0932c9b48e8 /src/aboutdialog.cpp | |
parent | 6db1c2645d6c5b7f8e4b13b8f58b4673ea5457f3 (diff) | |
download | ActorViewer-6a07ef99d9f98b1db4fad91b3cd69e6146c1f01e.tar ActorViewer-6a07ef99d9f98b1db4fad91b3cd69e6146c1f01e.tar.gz ActorViewer-6a07ef99d9f98b1db4fad91b3cd69e6146c1f01e.zip |
Implement about dialog
Diffstat (limited to 'src/aboutdialog.cpp')
-rw-r--r-- | src/aboutdialog.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/aboutdialog.cpp b/src/aboutdialog.cpp new file mode 100644 index 0000000..0a96e59 --- /dev/null +++ b/src/aboutdialog.cpp @@ -0,0 +1,20 @@ +#include "aboutdialog.h" +#include <qsizepolicy.h> + +AboutDialog::AboutDialog(QWidget* parent) + : QDialog(parent, Qt::Dialog), ui(new Ui::AboutDialog) +{ + ui->setupUi(this); + + // TODO: show version or git build in about text + //ui->label->setText(ui->label->text().arg("aaa")); + + // I have been saved by https://stackoverflow.com/a/22565649 + // It's not more complicated than that… thankfully + adjustSize(); + setFixedSize(sizeHint()); +} + +AboutDialog::~AboutDialog() { + delete ui; +} |