From kde-commits Sun Oct 04 11:11:17 2009 From: Urs Wolfer Date: Sun, 04 Oct 2009 11:11:17 +0000 To: kde-commits Subject: playground/libs/webkitkde Message-Id: <1254654677.969238.5294.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125465468514205 SVN commit 1031199 by uwolfer: * i18n fix * use QPointer to prevent possible crash * include cleanup * 'fix' include guards M +15 -4 kdelauncher/main.cpp M +3 -3 part/sslinfodialog_p.h M +1 -1 part/webkitpart.cpp M +1 -1 part/webpage.cpp M +3 -3 part/websslinfo.h --- trunk/playground/libs/webkitkde/kdelauncher/main.cpp #1031198:1031199 @@ -41,7 +41,6 @@ #include #endif -#include #include #if QT_VERSION >= 0x040400 && !defined(QT_NO_PRINTER) #include @@ -49,10 +48,22 @@ #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include class WebPage : public KWebPage { --- trunk/playground/libs/webkitkde/part/sslinfodialog_p.h #1031198:1031199 @@ -19,8 +19,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef _KSSLINFODIALOG_H -#define _KSSLINFODIALOG_H +#ifndef SSLINFODIALOG_P_H +#define SSLINFODIALOG_P_H #include @@ -101,4 +101,4 @@ KSslInfoDialogPrivate* const d; }; -#endif +#endif // SSLINFODIALOG_P_H --- trunk/playground/libs/webkitkde/part/webkitpart.cpp #1031198:1031199 @@ -473,7 +473,7 @@ { WebPage* page = qobject_cast(d->webView->page()); if (page->isSecurePage()) { - KSslInfoDialog *dlg = new KSslInfoDialog(0); + QPointer dlg = new KSslInfoDialog(0); page->setupSslDialog(*dlg); dlg->exec(); } else { --- trunk/playground/libs/webkitkde/part/webpage.cpp #1031198:1031199 @@ -480,7 +480,7 @@ switch (type) { case QWebPage::NavigationTypeLinkClicked: message = i18n("This untrusted page links to
%1." - "
Do you want to follow the link?
").arg(linkUrl.url()); + "
Do you want to follow the link?", linkUrl.url()); title = i18n("Security Warning"); buttonText = i18n("Follow"); break; --- trunk/playground/libs/webkitkde/part/websslinfo.h #1031198:1031199 @@ -19,8 +19,8 @@ * Boston, MA 02110-1301, USA. * */ -#ifndef KWEBPAGESSLINFO_H -#define KWEBPAGESSLINFO_H +#ifndef WEBSSLINFO_H +#define WEBSSLINFO_H #include @@ -68,4 +68,4 @@ WebSslInfoPrivate* d; }; -#endif +#endif // WEBSSLINFO_H