summaryrefslogtreecommitdiffstatshomepage
path: root/Introduction.cpp
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-03-13 06:05:23 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-03-13 06:05:23 -0400
commit4f294eab3c0cc9174b43923829ca78f2edd11aea (patch)
tree560623f04cf551e1186fc9b439ca5bb6572afc37 /Introduction.cpp
parentDont float instructions. (diff)
downloadAuthor-4f294eab3c0cc9174b43923829ca78f2edd11aea.tar.xz
Author-4f294eab3c0cc9174b43923829ca78f2edd11aea.zip
Add easy introduction.
Diffstat (limited to 'Introduction.cpp')
-rw-r--r--Introduction.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/Introduction.cpp b/Introduction.cpp
new file mode 100644
index 0000000..2bb4462
--- /dev/null
+++ b/Introduction.cpp
@@ -0,0 +1,16 @@
+#include "Introduction.h"
+#include "Instructions.h"
+#include <QPushButton>
+#include <QVBoxLayout>
+
+Introduction::Introduction(QWidget *parent) :
+ QDialog(parent)
+{
+ QVBoxLayout *layout = new QVBoxLayout;
+ layout->addWidget(new Instructions);
+ QPushButton *okay = new QPushButton(tr("Wonderful, let's begin!"));
+ connect(okay, SIGNAL(clicked()), this, SLOT(accept()));
+ okay->resize(okay->sizeHint() * 2);
+ layout->addWidget(okay);
+ setLayout(layout);
+}