Diffstat (limited to 'noncore/apps/opie-sheet/textdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/textdlg.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/apps/opie-sheet/textdlg.cpp b/noncore/apps/opie-sheet/textdlg.cpp index 8245fe4..0810eb2 100644 --- a/noncore/apps/opie-sheet/textdlg.cpp +++ b/noncore/apps/opie-sheet/textdlg.cpp | |||
@@ -1,24 +1,38 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | |||
10 | /* | ||
11 | * Opie Sheet (formerly Sheet/Qt) | ||
12 | * by Serdar Ozler <sozler@sitebest.com> | ||
13 | */ | ||
14 | |||
1 | #include "textdlg.h" | 15 | #include "textdlg.h" |
2 | 16 | ||
3 | TextDialog::TextDialog(QWidget *parent=0) | 17 | TextDialog::TextDialog(QWidget *parent=0) |
4 | :QDialog(parent, 0, TRUE) | 18 | :QDialog(parent, 0, TRUE) |
5 | { | 19 | { |
6 | edit=new QLineEdit(this); | 20 | edit=new QLineEdit(this); |
7 | edit->setGeometry(90, 10, 100, 25); | 21 | edit->setGeometry(90, 10, 100, 25); |
8 | 22 | ||
9 | label=new QLabel(this); | 23 | label=new QLabel(this); |
10 | label->setGeometry(10, 10, 70, 25); | 24 | label->setGeometry(10, 10, 70, 25); |
11 | label->setBuddy(edit); | 25 | label->setBuddy(edit); |
12 | 26 | ||
13 | resize(200, 45); | 27 | resize(200, 45); |
14 | } | 28 | } |
15 | 29 | ||
16 | TextDialog::~TextDialog() | 30 | TextDialog::~TextDialog() |
17 | { | 31 | { |
18 | } | 32 | } |
19 | 33 | ||
20 | int TextDialog::exec(const QString &caption, const QString &text, const QString &value="") | 34 | int TextDialog::exec(const QString &caption, const QString &text, const QString &value="") |
21 | { | 35 | { |
22 | setCaption(caption); | 36 | setCaption(caption); |
23 | label->setText(text); | 37 | label->setText(text); |
24 | edit->setText(value); | 38 | edit->setText(value); |