From 0b0f3dccd3b6dbb01fd268e2c737fd1a6c163379 Mon Sep 17 00:00:00 2001 From: drw Date: Mon, 21 Oct 2002 23:04:11 +0000 Subject: New version of Checkbook app --- (limited to 'noncore/apps/checkbook/qcheckname.cpp') 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 -#include -#include -#include -#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", "Please enter the name of your Check Book and try again."); - } -} -- cgit v0.9.0.2