1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +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 <QPushButton>
#include <QWebHitTestResult>
#include <QMenu>
TestPlugin::TestPlugin()
@ -140,6 +139,7 @@ void TestPlugin::showSettings(QWidget* parent)
m_settings.data()->raise();
}
#if QTWEBENGINE_DISABLED
void TestPlugin::populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitTestResult &r)
{
// 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()));
}
#endif
bool TestPlugin::mousePress(const Qz::ObjectName &type, QObject* obj, QMouseEvent* event)
{

View File

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

View File

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