author | drw <drw> | 2002-10-21 23:04:11 (UTC) |
---|---|---|
committer | drw <drw> | 2002-10-21 23:04:11 (UTC) |
commit | 0b0f3dccd3b6dbb01fd268e2c737fd1a6c163379 (patch) (side-by-side diff) | |
tree | fc39f1647722bb5bc9a935c32567a3da666ae843 /noncore/apps/checkbook/qcheckname.cpp | |
parent | b466b56f8a17010d651f07149ae5b860296ac710 (diff) | |
download | opie-0b0f3dccd3b6dbb01fd268e2c737fd1a6c163379.zip opie-0b0f3dccd3b6dbb01fd268e2c737fd1a6c163379.tar.gz opie-0b0f3dccd3b6dbb01fd268e2c737fd1a6c163379.tar.bz2 |
New version of Checkbook app
Diffstat (limited to 'noncore/apps/checkbook/qcheckname.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/qcheckname.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/noncore/apps/checkbook/qcheckname.cpp b/noncore/apps/checkbook/qcheckname.cpp deleted file mode 100644 index 0e4d71c..0000000 --- a/noncore/apps/checkbook/qcheckname.cpp +++ b/dev/null @@ -1,36 +0,0 @@ -#include "qcheckname.h" -#include <qmessagebox.h> -#include <qdialog.h> -#include <qpushbutton.h> -#include <qlineedit.h> -#include "qrestrictedline.h" - -QCheckName::QCheckName() - : QCheckNameBase() -{ - connect(cmdDone, SIGNAL(clicked()), this, SLOT(clicked())); -} - -QString QCheckName::getName() -{ - QCheckName qcn; - qcn.setWFlags(Qt::WType_Modal); - qcn.leText->setValidChars("abcdefghijklmnopqrstuvwxyz0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ"); - if (qcn.exec() == QDialog::Accepted) - { - return qcn.leText->text(); - } else { - return QString(""); - } -} - -void QCheckName::clicked() -{ - if (leText->text().isEmpty() == false) - { - hide(); - accept(); - } else { - QMessageBox::critical(this, "Missing Information", "<qt>Please enter the name of your Check Book and try again.</qt>"); - } -} |