Diffstat (limited to 'noncore/games/kbill/inputbox.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kbill/inputbox.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/games/kbill/inputbox.cpp b/noncore/games/kbill/inputbox.cpp index b191ea8..5087fbb 100644 --- a/noncore/games/kbill/inputbox.cpp +++ b/noncore/games/kbill/inputbox.cpp | |||
@@ -1,51 +1,50 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | inputbox.cpp - description | 2 | inputbox.cpp - description |
3 | ------------------- | 3 | ------------------- |
4 | begin : Sat Jan 1 2000 | 4 | begin : Sat Jan 1 2000 |
5 | copyright : (C) 2000 by Jurrien Loonstra | 5 | copyright : (C) 2000 by Jurrien Loonstra |
6 | email : j.h.loonstra@st.hanze.nl | 6 | email : j.h.loonstra@st.hanze.nl |
7 | ***************************************************************************/ | 7 | ***************************************************************************/ |
8 | 8 | ||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 14 | * (at your option) any later version. * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | #include "inputbox.h" | 18 | #include "inputbox.h" |
19 | #include <qdialog.h> | ||
20 | InputBox::InputBox(QWidget *parent, const char *name, const char *caption, const char *text) : QDialog(parent, name, TRUE) { | 19 | InputBox::InputBox(QWidget *parent, const char *name, const char *caption, const char *text) : QDialog(parent, name, TRUE) { |
21 | // setCaption(caption); | 20 | // setCaption(caption); |
22 | // | 21 | // |
23 | // question = new QLabel(this); | 22 | // question = new QLabel(this); |
24 | // question->setText(text); | 23 | // question->setText(text); |
25 | // question->setGeometry(10, 10, 240, 50); | 24 | // question->setGeometry(10, 10, 240, 50); |
26 | // | 25 | // |
27 | // input = new QLineEdit(this); | 26 | // input = new QLineEdit(this); |
28 | // input->setGeometry(10, 60, 240, 30); | 27 | // input->setGeometry(10, 60, 240, 30); |
29 | // input->setFocus(); | 28 | // input->setFocus(); |
30 | // input->setMaxLength(19); | 29 | // input->setMaxLength(19); |
31 | // | 30 | // |
32 | // ok = new QPushButton( "Ok", this ); | 31 | // ok = new QPushButton( "Ok", this ); |
33 | // ok->setGeometry(10, 100, 100,30 ); | 32 | // ok->setGeometry(10, 100, 100,30 ); |
34 | // ok->setDefault(TRUE); | 33 | // ok->setDefault(TRUE); |
35 | // connect( ok, SIGNAL(clicked()), SLOT(accept()) ); | 34 | // connect( ok, SIGNAL(clicked()), SLOT(accept()) ); |
36 | // | 35 | // |
37 | // cancel = new QPushButton( "Cancel", this ); | 36 | // cancel = new QPushButton( "Cancel", this ); |
38 | // cancel->setGeometry(150, 100, 100,30 ); | 37 | // cancel->setGeometry(150, 100, 100,30 ); |
39 | // connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); | 38 | // connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); |
40 | } | 39 | } |
41 | 40 | ||
42 | InputBox::~InputBox(){ | 41 | InputBox::~InputBox(){ |
43 | delete ok; | 42 | delete ok; |
44 | delete cancel; | 43 | delete cancel; |
45 | delete question; | 44 | delete question; |
46 | delete input; | 45 | delete input; |
47 | } | 46 | } |
48 | 47 | ||
49 | QString InputBox::getText() const{ | 48 | QString InputBox::getText() const{ |
50 | return input->text(); | 49 | return input->text(); |
51 | } | 50 | } |