Commit cf2add0d authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent 263cd32e
......@@ -16,11 +16,8 @@
*/
#include "testwebengineaccesskey.h"
#include "../mailwebengineaccesskey.h"
#include "../mailwebengineview.h"
#include "viewer/webview/mailwebview.h"
#include "viewer/webview/webviewaccesskey.h"
#include "messageviewer/messageviewersettings.h"
#include <QApplication>
......@@ -28,7 +25,6 @@
#include <QWebEngineSettings>
#include <QStandardPaths>
#include <KActionCollection>
#include <QLabel>
#include <QPushButton>
......@@ -50,31 +46,6 @@ TestWidget::~TestWidget()
}
TestWebKitAccesskey::TestWebKitAccesskey(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *vboxLayout = new QVBoxLayout(this);
QLabel *label = new QLabel(QStringLiteral("WebKit"));
vboxLayout->addWidget(label);
mTestWebEngine = new WebEngineViewer::MailWebView(new KActionCollection(this), this);
vboxLayout->addWidget(mTestWebEngine);
mTestWebEngine->load(QUrl(QStringLiteral("http://www.kde.org")));
QPushButton *searchAccessKey = new QPushButton(QStringLiteral("AccessKey"), this);
vboxLayout->addWidget(searchAccessKey);
connect(searchAccessKey, &QPushButton::clicked, this, &TestWebKitAccesskey::slotShowAccessKey);
}
TestWebKitAccesskey::~TestWebKitAccesskey()
{
}
void TestWebKitAccesskey::slotShowAccessKey()
{
mTestWebEngine->showAccessKeys();
}
TestWebEngineAccesskey::TestWebEngineAccesskey(QWidget *parent)
: QWidget(parent)
{
......
......@@ -23,7 +23,6 @@
namespace WebEngineViewer
{
class MailWebEngineView;
class MailWebView;
}
class TestWidget : public QWidget
......@@ -34,20 +33,6 @@ public:
~TestWidget();
};
class TestWebKitAccesskey : public QWidget
{
Q_OBJECT
public:
explicit TestWebKitAccesskey(QWidget *parent = Q_NULLPTR);
~TestWebKitAccesskey();
private Q_SLOTS:
void slotShowAccessKey();
private:
WebEngineViewer::MailWebView *mTestWebEngine;
};
class TestWebEngineAccesskey : public QWidget
{
Q_OBJECT
......
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