mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Properly test for USE_QTWEBKIT_2_2 define
This commit is contained in:
parent
eac8af1b51
commit
136452ad2a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user