aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-06-27 15:57:13 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-06-27 15:59:36 +0200
commitd218feed51015b2d5662d802bf4cc3c6d6d165c3 (patch)
treef26594f88897665cf5f6b50a6affa35f0d313f76
parent050f8c5574bfdb89efd2fb94f55f658962128f8c (diff)
downloadqtmips-d218feed51015b2d5662d802bf4cc3c6d6d165c3.tar.gz
qtmips-d218feed51015b2d5662d802bf4cc3c6d6d165c3.tar.bz2
qtmips-d218feed51015b2d5662d802bf4cc3c6d6d165c3.zip
Set minimal size of about dialog to make it usable under emscripten.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r--qtmips_gui/aboutdialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtmips_gui/aboutdialog.cpp b/qtmips_gui/aboutdialog.cpp
index c14f0a8..161a322 100644
--- a/qtmips_gui/aboutdialog.cpp
+++ b/qtmips_gui/aboutdialog.cpp
@@ -51,8 +51,9 @@ AboutDialog::AboutDialog(QWidget *parent)
{
QLabel *lbl;
- setWindowModality(Qt::WindowModal);
setAttribute(Qt::WA_DeleteOnClose);
+ setAttribute(Qt::WA_ShowModal);
+ setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
setWindowTitle(tr("About Qt Mips"));
@@ -131,5 +132,7 @@ AboutDialog::AboutDialog(QWidget *parent)
hlBtn->addStretch();
hlBtn->addWidget(okButton);
+ setMinimumSize(450, 500);
+
prevTab = 0; // first Tab is selected by default
}