Commit 102c2c96 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

improve

parent b23513c7
...@@ -16,12 +16,19 @@ ...@@ -16,12 +16,19 @@
*/ */
#include "testmailwebengine.h" #include "testmailwebengine.h"
#include <KActionCollection>
#include <QApplication> #include <QApplication>
#include <QVBoxLayout>
#include <viewer/webengine/mailwebengineview.h>
TestMailWebEngine::TestMailWebEngine(QWidget *parent) TestMailWebEngine::TestMailWebEngine(QWidget *parent)
: QWidget(parent) : QWidget(parent)
{ {
QVBoxLayout *vbox = new QVBoxLayout(this);
mTestWebEngine = new MessageViewer::MailWebEngineView(new KActionCollection(this), this);
vbox->addWidget(mTestWebEngine);
} }
TestMailWebEngine::~TestMailWebEngine() TestMailWebEngine::~TestMailWebEngine()
......
...@@ -20,12 +20,19 @@ ...@@ -20,12 +20,19 @@
#include <QWidget> #include <QWidget>
namespace MessageViewer
{
class MailWebEngineView;
}
class TestMailWebEngine : public QWidget class TestMailWebEngine : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TestMailWebEngine(QWidget *parent = Q_NULLPTR); explicit TestMailWebEngine(QWidget *parent = Q_NULLPTR);
~TestMailWebEngine(); ~TestMailWebEngine();
private:
MessageViewer::MailWebEngineView *mTestWebEngine;
}; };
#endif // TESTMAILWEBENGINE_H #endif // TESTMAILWEBENGINE_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment