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:
parent
f366dbd11f
commit
226c721d57
|
@ -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())) {
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user