summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-27 07:00:24 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-27 07:00:24 (GMT)
commitd5e74dce99599f41b520749f27fe8505f19475dd (patch)
treea19492f0e1f5e9d50f1542cbb6632d0e70fb57c0
parente2805c46ef9e915e8ba93954f53b341dd70d521e (diff)
Improve test apps
-rw-r--r--messageviewer/src/checkphishingurl/tests/checkphishingurlgui.cpp9
-rw-r--r--messageviewer/src/checkphishingurl/tests/checkphishingurlgui.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/messageviewer/src/checkphishingurl/tests/checkphishingurlgui.cpp b/messageviewer/src/checkphishingurl/tests/checkphishingurlgui.cpp
index 829df53..fbfd64b 100644
--- a/messageviewer/src/checkphishingurl/tests/checkphishingurlgui.cpp
+++ b/messageviewer/src/checkphishingurl/tests/checkphishingurlgui.cpp
@@ -22,6 +22,7 @@
#include <QApplication>
#include <QStandardPaths>
#include <QLineEdit>
+#include <QPushButton>
#include <QTextEdit>
#include <QLabel>
#include <QVBoxLayout>
@@ -37,6 +38,9 @@ CheckPhishingUrlGui::CheckPhishingUrlGui(QWidget *parent)
checkUrlLayout->addWidget(lab);
mCheckUrlLineEdit = new QLineEdit(this);
checkUrlLayout->addWidget(mCheckUrlLineEdit);
+ QPushButton *button = new QPushButton(QStringLiteral("Check"), this);
+ checkUrlLayout->addWidget(button);
+ connect(button, &QPushButton::clicked, this, &CheckPhishingUrlGui::slotCheckUrl);
mResult = new QTextEdit(this);
mResult->setReadOnly(true);
@@ -49,6 +53,11 @@ CheckPhishingUrlGui::~CheckPhishingUrlGui()
}
+void CheckPhishingUrlGui::slotCheckUrl()
+{
+
+}
+
int main(int argc, char **argv)
{
QApplication app(argc, argv);
diff --git a/messageviewer/src/checkphishingurl/tests/checkphishingurlgui.h b/messageviewer/src/checkphishingurl/tests/checkphishingurlgui.h
index fce0090..9236886 100644
--- a/messageviewer/src/checkphishingurl/tests/checkphishingurlgui.h
+++ b/messageviewer/src/checkphishingurl/tests/checkphishingurlgui.h
@@ -30,6 +30,8 @@ class CheckPhishingUrlGui : public QWidget
public:
explicit CheckPhishingUrlGui(QWidget *parent = Q_NULLPTR);
~CheckPhishingUrlGui();
+private Q_SLOTS:
+ void slotCheckUrl();
private:
QLineEdit *mCheckUrlLineEdit;
QTextEdit *mResult;