1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Bring back TestPlugin

This commit is contained in:
David Rosca 2015-05-24 21:53:59 +02:00
parent 8f353d7c21
commit 1387dbef64
3 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,6 @@
#include <QTranslator> #include <QTranslator>
#include <QPushButton> #include <QPushButton>
#include <QWebHitTestResult>
#include <QMenu> #include <QMenu>
TestPlugin::TestPlugin() TestPlugin::TestPlugin()
@ -140,6 +139,7 @@ void TestPlugin::showSettings(QWidget* parent)
m_settings.data()->raise(); m_settings.data()->raise();
} }
#if QTWEBENGINE_DISABLED
void TestPlugin::populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitTestResult &r) void TestPlugin::populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitTestResult &r)
{ {
// Called from WebView when creating context menu // Called from WebView when creating context menu
@ -161,6 +161,7 @@ void TestPlugin::populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitTe
menu->addAction(tr("My first plugin action") + title, this, SLOT(actionSlot())); menu->addAction(tr("My first plugin action") + title, this, SLOT(actionSlot()));
} }
#endif
bool TestPlugin::mousePress(const Qz::ObjectName &type, QObject* obj, QMouseEvent* event) bool TestPlugin::mousePress(const Qz::ObjectName &type, QObject* obj, QMouseEvent* event)
{ {

View File

@ -51,7 +51,9 @@ public:
QTranslator* getTranslator(const QString &locale); QTranslator* getTranslator(const QString &locale);
void showSettings(QWidget* parent = 0); void showSettings(QWidget* parent = 0);
#if 0
void populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitTestResult &r); void populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitTestResult &r);
#endif
bool mousePress(const Qz::ObjectName &type, QObject* obj, QMouseEvent* event); bool mousePress(const Qz::ObjectName &type, QObject* obj, QMouseEvent* event);

View File

@ -48,5 +48,4 @@ disablePlugin(GreaseMonkey)
disablePlugin(MailHandle) disablePlugin(MailHandle)
disablePlugin(MouseGestures) disablePlugin(MouseGestures)
disablePlugin(PIM) disablePlugin(PIM)
disablePlugin(TestPlugin)
disablePlugin(Videoner) disablePlugin(Videoner)