1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-22 02:02:10 +02: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 /* 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())
{
if (QApplication::isRightToLeft() && (!shortcutRTL.isEmpty() || !fallbackRTL.isEmpty())) {

View File

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

View File

@ -26,7 +26,7 @@ UserAgentManager::UserAgentManager(QObject* parent)
: QObject(parent)
, 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()