diff options
| author | 2011-03-13 06:05:23 -0400 | |
|---|---|---|
| committer | 2011-03-13 06:05:23 -0400 | |
| commit | 4f294eab3c0cc9174b43923829ca78f2edd11aea (patch) | |
| tree | 560623f04cf551e1186fc9b439ca5bb6572afc37 /Introduction.cpp | |
| parent | Dont float instructions. (diff) | |
| download | Author-4f294eab3c0cc9174b43923829ca78f2edd11aea.tar.xz Author-4f294eab3c0cc9174b43923829ca78f2edd11aea.zip | |
Add easy introduction.
Diffstat (limited to 'Introduction.cpp')
| -rw-r--r-- | Introduction.cpp | 16 |
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); +} |
