summaryrefslogtreecommitdiffstatshomepage
path: root/Introduction.cpp
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-03-19 05:54:01 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-03-19 05:54:01 -0400
commit6e68965d4e607a4648bba54555c9633c97d7c814 (patch)
treef98a097f03309a2a4aec6cb5ba1d8d440eca5c6e /Introduction.cpp
parentUse correct spacing metrics. (diff)
downloadAuthor-6e68965d4e607a4648bba54555c9633c97d7c814.tar.xz
Author-6e68965d4e607a4648bba54555c9633c97d7c814.zip
Intelligently fix size.
Diffstat (limited to 'Introduction.cpp')
-rw-r--r--Introduction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Introduction.cpp b/Introduction.cpp
index 03ed95e..ed69dd9 100644
--- a/Introduction.cpp
+++ b/Introduction.cpp
@@ -15,6 +15,7 @@
#include <QFile>
#include <QApplication>
#include <QDialogButtonBox>
+#include <QDebug>
Introduction::Introduction(QWidget *parent) :
QDialog(parent)
@@ -74,9 +75,9 @@ Introduction::Introduction(QWidget *parent) :
existingCompositionBox->setLayout(existingCompositionBoxLayout);
layout->addWidget(existingCompositionBox);
- setFixedWidth(600);
- setMinimumHeight(200);
setLayout(layout);
+ setMinimumHeight(sizeHint().height());
+ setFixedWidth(sizeHint().width());
}
QString Introduction::title() const
{