1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

BrowserWindow: Remove static WEBKITVERSION

This commit is contained in:
David Rosca 2015-02-08 11:45:15 +01:00
parent f366dbd11f
commit 226c721d57
3 changed files with 1 additions and 9 deletions

View File

@ -105,12 +105,6 @@
#endif #endif
#endif /* Q_OS_WIN */ #endif /* Q_OS_WIN */
#if QTWEBENGINE_DISABLED
const QString BrowserWindow::WEBKITVERSION = qWebKitVersion();
#else
const QString BrowserWindow::WEBKITVERSION = QSL("QtWebEngine");
#endif
static QKeySequence actionShortcut(QKeySequence shortcut, QKeySequence fallBack, QKeySequence shortcutRTL = QKeySequence(), QKeySequence fallbackRTL = QKeySequence()) static QKeySequence actionShortcut(QKeySequence shortcut, QKeySequence fallBack, QKeySequence shortcutRTL = QKeySequence(), QKeySequence fallbackRTL = QKeySequence())
{ {
if (QApplication::isRightToLeft() && (!shortcutRTL.isEmpty() || !fallbackRTL.isEmpty())) { if (QApplication::isRightToLeft() && (!shortcutRTL.isEmpty() || !fallbackRTL.isEmpty())) {

View File

@ -58,8 +58,6 @@ class QUPZILLA_EXPORT BrowserWindow : public QMainWindow
Q_OBJECT Q_OBJECT
public: public:
static const QString WEBKITVERSION;
explicit BrowserWindow(Qz::BrowserWindowType type, const QUrl &url = QUrl()); explicit BrowserWindow(Qz::BrowserWindowType type, const QUrl &url = QUrl());
~BrowserWindow(); ~BrowserWindow();

View File

@ -26,7 +26,7 @@ UserAgentManager::UserAgentManager(QObject* parent)
: QObject(parent) : QObject(parent)
, m_usePerDomainUserAgent(false) , m_usePerDomainUserAgent(false)
{ {
m_fakeUserAgent = QString("Mozilla/5.0 (%1) AppleWebKit/%2 (KHTML, like Gecko) Chrome/10.0 Safari/%2").arg(QzTools::operatingSystem(), BrowserWindow::WEBKITVERSION); m_fakeUserAgent = QString("Mozilla/5.0 (%1) AppleWebKit/%2 (KHTML, like Gecko) Chrome/37.0 Safari/537.36").arg(QzTools::operatingSystem());
} }
void UserAgentManager::loadSettings() void UserAgentManager::loadSettings()