From e3bc0fd26c14717107c3eccffa7d583611291ad1 Mon Sep 17 00:00:00 2001 From: conber Date: Sun, 16 Jun 2002 10:34:06 +0000 Subject: not needed --- diff --git a/noncore/unsupported/mail2/passdiag.cpp b/noncore/unsupported/mail2/passdiag.cpp deleted file mode 100644 index d3daa2c..0000000 --- a/noncore/unsupported/mail2/passdiag.cpp +++ b/dev/null @@ -1,38 +0,0 @@ -#include -#include -#include -#include - -#include "passdiag.h" - -PassDiag::PassDiag(QString text, QWidget *parent, const char *name, bool modal, WFlags fl) - : PassDiagBase(parent, name, modal, fl) -{ - infoLabel->setText(text); - - connect(ok, SIGNAL(clicked()), SLOT(accept())); - connect(cancel, SIGNAL(clicked()), SLOT(close())); -} - -void PassDiag::accept() -{ - if (password->text().isEmpty()) { - QMessageBox::information(this, tr("Error"), tr("

You have to enter a password or click on cancel.

"), tr("Ok")); - return; - } - - QDialog::accept(); -} - -QString PassDiag::getPassword(QWidget *parent, QString text) -{ - PassDiag *diag = new PassDiag(text, parent, 0, true); - diag->show(); - - if (QDialog::Accepted == diag->exec()) { - return diag->password->text(); - } - - return 0; -} - diff --git a/noncore/unsupported/mail2/passdiag.h b/noncore/unsupported/mail2/passdiag.h deleted file mode 100644 index b611dd5..0000000 --- a/noncore/unsupported/mail2/passdiag.h +++ b/dev/null @@ -1,21 +0,0 @@ -#ifndef PASSDIAG_H -#define PASSDIAG_H - -#include "passdiagbase.h" - -class PassDiag : public PassDiagBase -{ - Q_OBJECT - -public: - static QString getPassword(QWidget *parent, QString text); - -protected: - PassDiag(QString text, QWidget *parent, const char *name = 0, bool modal = false, WFlags fl = 0); - -protected slots: - void accept(); - -}; - -#endif diff --git a/noncore/unsupported/mail2/passdiagbase.ui b/noncore/unsupported/mail2/passdiagbase.ui deleted file mode 100644 index daf8bad..0000000 --- a/noncore/unsupported/mail2/passdiagbase.ui +++ b/dev/null @@ -1,115 +0,0 @@ - -PassDiagBase - - QDialog - - name - PassDiagBase - - - geometry - - 0 - 0 - 216 - 120 - - - - caption - Enter your Password - - - layoutMargin - - - layoutSpacing - - - - margin - 4 - - - spacing - 3 - - - QLabel - - name - infoLabel - - - text - Please enter your GPG passphrase: - - - - QLineEdit - - name - password - - - echoMode - Password - - - - QCheckBox - - name - showPasswd - - - text - Show Password - - - - QPushButton - - name - ok - - - text - Ok - - - - QPushButton - - name - cancel - - - text - Cancel - - - - - name - Spacer3 - - - orientation - Vertical - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - - -- cgit v0.9.0.2