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:
parent
8f353d7c21
commit
1387dbef64
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
@ -48,5 +48,4 @@ disablePlugin(GreaseMonkey)
|
||||
disablePlugin(MailHandle)
|
||||
disablePlugin(MouseGestures)
|
||||
disablePlugin(PIM)
|
||||
disablePlugin(TestPlugin)
|
||||
disablePlugin(Videoner)
|
||||
|
Loading…
Reference in New Issue
Block a user