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

Properly test for USE_QTWEBKIT_2_2 define

This commit is contained in:
nowrep 2013-06-17 21:03:45 +02:00
parent eac8af1b51
commit 136452ad2a
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@
#include <QWebFrame>
#if USE_QTWEBKIT_2_2
#ifdef USE_QTWEBKIT_2_2
HTML5PermissionsNotification::HTML5PermissionsNotification(const QString &host, QWebFrame* frame, const QWebPage::Feature &feature)
: AnimatedWidget(AnimatedWidget::Down, 300, 0)
, ui(new Ui::HTML5PermissionsNotification)
@ -93,4 +93,4 @@ HTML5PermissionsNotification::~HTML5PermissionsNotification()
{
delete ui;
}
#endif // QTWEBKIT_FROM_2_2
#endif // USE_QTWEBKIT_2_2

View File

@ -433,7 +433,7 @@ void WebPage::dbQuotaExceeded(QWebFrame* frame)
frame->securityOrigin().setDatabaseQuota(oldQuota * 2);
}
#if USE_QTWEBKIT_2_2
#ifdef USE_QTWEBKIT_2_2
void WebPage::appCacheQuotaExceeded(QWebSecurityOrigin* origin, quint64 originalQuota)
{
if (!origin) {
@ -447,7 +447,7 @@ void WebPage::featurePermissionRequested(QWebFrame* frame, const QWebPage::Featu
{
mApp->html5permissions()->requestPermissions(this, frame, feature);
}
#endif
#endif // USE_QTWEBKIT_2_2
bool WebPage::event(QEvent* event)
{