From 0b8ee38c5326fa668906a3f66a959423d84f85d1 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 10 Mar 2009 23:05:09 +0100 Subject: Some fixes --- src/mainwindow.cpp | 1 - src/settings_privacy.ui | 89 +++++++++++++++++++++++++------------------------ src/webview.cpp | 20 +++++------ src/webview.h | 2 +- 4 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 5a591883..98ce7d99 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -151,7 +151,6 @@ MainWindow::MainWindow() MainWindow::~MainWindow() { delete m_view; - delete m_bookmarksProvider; } diff --git a/src/settings_privacy.ui b/src/settings_privacy.ui index 19e7f088..7f3ff1a8 100644 --- a/src/settings_privacy.ui +++ b/src/settings_privacy.ui @@ -1,7 +1,8 @@ - + + privacy - - + + 0 0 @@ -9,32 +10,32 @@ 313 - + Privacy - + - - + + Web Content - + - - + + Enable Plugins - + true - - + + Enable Javascript - + true @@ -43,79 +44,79 @@ - - + + Cookies - - - - + + + + Accept Cookies: - + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - + + - + Always - + Never - + Only from sites you navigate to - - - + + + Exceptions... - - - + + + Keep until: - + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - + + - + They expire - + I exit the application - + At most 90 days - - - + + + Cookies... @@ -124,11 +125,11 @@ - - + + Qt::Vertical - + 20 40 diff --git a/src/webview.cpp b/src/webview.cpp index e6748263..0c2e0b6e 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -111,19 +111,19 @@ QWebPage *WebPage::createWindow(QWebPage::WebWindowType type) } -// QObject *WebPage::createPlugin(const QString &classId, const QUrl &url, const QStringList ¶mNames, const QStringList ¶mValues) -// { -// kWarning() << "creating PLUGIN for rekonq "; -// kWarning() << "classId = " << classId; -// kWarning() << "url = " << url; -// kWarning() << "Param Names = " << paramNames; -// kWarning() << "Param Values = " << paramValues; +QObject *WebPage::createPlugin(const QString &classId, const QUrl &url, const QStringList ¶mNames, const QStringList ¶mValues) +{ + kWarning() << "creating PLUGIN for rekonq "; + kWarning() << "classId = " << classId; + kWarning() << "url = " << url; + kWarning() << "Param Names = " << paramNames; + kWarning() << "Param Values = " << paramValues; // Q_UNUSED(url); // Q_UNUSED(paramNames); // Q_UNUSED(paramValues); -// QUiLoader loader; -// return loader.createWidget(classId, view()); -// } + QUiLoader loader; + return loader.createWidget(classId, view()); +} void WebPage::handleUnsupportedContent(QNetworkReply *reply) diff --git a/src/webview.h b/src/webview.h index b45edc17..6892fbd4 100644 --- a/src/webview.h +++ b/src/webview.h @@ -50,7 +50,7 @@ public: protected: bool acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type); QWebPage *createWindow(QWebPage::WebWindowType type); -// QObject *createPlugin(const QString &classId, const QUrl &url, const QStringList ¶mNames, const QStringList ¶mValues); + QObject *createPlugin(const QString &classId, const QUrl &url, const QStringList ¶mNames, const QStringList ¶mValues); private slots: void handleUnsupportedContent(QNetworkReply *reply); -- cgit v1.2.1