summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-03-27 20:42:10 +0200
committerMontel Laurent <[email protected]>2016-03-27 20:42:10 +0200
commit102c2c9659312e62edc035ea1b5313dc811ef6bf (patch)
tree3f8e143606f296e444a304c979e45f842baa8c54
parentb23513c7476d877ae066e202be63d47e148644ee (diff)
improve
-rw-r--r--messageviewer/src/webengine/tests/testmailwebengine.cpp9
-rw-r--r--messageviewer/src/webengine/tests/testmailwebengine.h7
2 files changed, 15 insertions, 1 deletions
diff --git a/messageviewer/src/webengine/tests/testmailwebengine.cpp b/messageviewer/src/webengine/tests/testmailwebengine.cpp
index 9896884..906074a 100644
--- a/messageviewer/src/webengine/tests/testmailwebengine.cpp
+++ b/messageviewer/src/webengine/tests/testmailwebengine.cpp
@@ -16,12 +16,19 @@
*/
#include "testmailwebengine.h"
+#include <KActionCollection>
#include <QApplication>
+#include <QVBoxLayout>
+
+#include <viewer/webengine/mailwebengineview.h>
+
TestMailWebEngine::TestMailWebEngine(QWidget *parent)
: QWidget(parent)
{
-
+ QVBoxLayout *vbox = new QVBoxLayout(this);
+ mTestWebEngine = new MessageViewer::MailWebEngineView(new KActionCollection(this), this);
+ vbox->addWidget(mTestWebEngine);
}
TestMailWebEngine::~TestMailWebEngine()
diff --git a/messageviewer/src/webengine/tests/testmailwebengine.h b/messageviewer/src/webengine/tests/testmailwebengine.h
index 681d9df..a902e6c 100644
--- a/messageviewer/src/webengine/tests/testmailwebengine.h
+++ b/messageviewer/src/webengine/tests/testmailwebengine.h
@@ -20,12 +20,19 @@
#include <QWidget>
+namespace MessageViewer
+{
+class MailWebEngineView;
+}
+
class TestMailWebEngine : public QWidget
{
Q_OBJECT
public:
explicit TestMailWebEngine(QWidget *parent = Q_NULLPTR);
~TestMailWebEngine();
+private:
+ MessageViewer::MailWebEngineView *mTestWebEngine;
};
#endif // TESTMAILWEBENGINE_H