summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/mail2/passdiag.cpp38
-rw-r--r--noncore/unsupported/mail2/passdiag.h21
-rw-r--r--noncore/unsupported/mail2/passdiagbase.ui115
3 files changed, 0 insertions, 174 deletions
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 <qmessagebox.h>
-#include <qpushbutton.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-
-#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("<p>You have to enter a password or click on cancel.</p>"), 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 @@
-<!DOCTYPE UI><UI>
-<class>PassDiagBase</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>PassDiagBase</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>216</width>
- <height>120</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Enter your Password</string>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>4</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>3</number>
- </property>
- <widget row="0" column="0" rowspan="1" colspan="4" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>infoLabel</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Please enter your GPG passphrase:</string>
- </property>
- </widget>
- <widget row="1" column="0" rowspan="1" colspan="4" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>password</cstring>
- </property>
- <property stdset="1">
- <name>echoMode</name>
- <enum>Password</enum>
- </property>
- </widget>
- <widget row="2" column="0" rowspan="1" colspan="4" >
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>showPasswd</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Show Password</string>
- </property>
- </widget>
- <widget row="4" column="1" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>ok</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Ok</string>
- </property>
- </widget>
- <widget row="4" column="2" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancel</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Cancel</string>
- </property>
- </widget>
- <spacer row="3" column="2" >
- <property>
- <name>name</name>
- <cstring>Spacer3</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </grid>
-</widget>
-</UI>