summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-sheet/textdlg.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-sheet/textdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-sheet/textdlg.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/opie-sheet/textdlg.cpp b/noncore/apps/opie-sheet/textdlg.cpp
index 0810eb2..34cec29 100644
--- a/noncore/apps/opie-sheet/textdlg.cpp
+++ b/noncore/apps/opie-sheet/textdlg.cpp
@@ -5,42 +5,43 @@
5 * the Free Software Foundation; either version 2 of the License, or * 5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. * 6 * (at your option) any later version. *
7 * * 7 * *
8 ***************************************************************************/ 8 ***************************************************************************/
9 9
10/* 10/*
11 * Opie Sheet (formerly Sheet/Qt) 11 * Opie Sheet (formerly Sheet/Qt)
12 * by Serdar Ozler <sozler@sitebest.com> 12 * by Serdar Ozler <sozler@sitebest.com>
13 */ 13 */
14 14
15#include "textdlg.h" 15#include "textdlg.h"
16 16
17TextDialog::TextDialog(QWidget *parent=0) 17TextDialog::TextDialog(QWidget *parent)
18 :QDialog(parent, 0, TRUE) 18 :QDialog(parent, 0, TRUE)
19{ 19{
20 edit=new QLineEdit(this); 20 edit=new QLineEdit(this);
21 edit->setGeometry(90, 10, 100, 25); 21 edit->setGeometry(90, 10, 100, 25);
22 22
23 label=new QLabel(this); 23 label=new QLabel(this);
24 label->setGeometry(10, 10, 70, 25); 24 label->setGeometry(10, 10, 70, 25);
25 label->setBuddy(edit); 25 label->setBuddy(edit);
26 26
27 resize(200, 45); 27 resize(200, 45);
28} 28}
29 29
30TextDialog::~TextDialog() 30TextDialog::~TextDialog()
31{ 31{
32} 32}
33 33
34int TextDialog::exec(const QString &caption, const QString &text, const QString &value="") 34int TextDialog::exec(const QString &caption, const QString &text,
35 const QString &value)
35{ 36{
36 setCaption(caption); 37 setCaption(caption);
37 label->setText(text); 38 label->setText(text);
38 edit->setText(value); 39 edit->setText(value);
39 40
40 return QDialog::exec(); 41 return QDialog::exec();
41} 42}
42 43
43QString TextDialog::getValue() 44QString TextDialog::getValue()
44{ 45{
45 return edit->text(); 46 return edit->text();
46} 47}