From 82c2970e1d355862461846c603f4cb272ce0d5aa Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 21 Sep 2017 07:01:31 +0200 Subject: [PATCH] Remove some #ifdefs. --- src/gui/webbrowser.cpp | 5 ----- src/gui/webbrowser.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/src/gui/webbrowser.cpp b/src/gui/webbrowser.cpp index 9d5e04902..fa2d91c6f 100755 --- a/src/gui/webbrowser.cpp +++ b/src/gui/webbrowser.cpp @@ -47,9 +47,7 @@ void WebBrowser::createConnections() { // Forward title/icon changes. connect(m_webView, &WebViewer::titleChanged, this, &WebBrowser::onTitleChanged); -#if QT_VERSION >= 0x050700 connect(m_webView, &WebViewer::iconChanged, this, &WebBrowser::onIconChanged); -#endif } void WebBrowser::updateUrl(const QUrl& url) { @@ -168,13 +166,10 @@ void WebBrowser::onTitleChanged(const QString& new_title) { } } -#if QT_VERSION >= 0x050700 void WebBrowser::onIconChanged(const QIcon& icon) { emit iconChanged(m_index, icon); } -#endif - void WebBrowser::initializeLayout() { m_toolBar->setFloatable(false); m_toolBar->setMovable(false); diff --git a/src/gui/webbrowser.h b/src/gui/webbrowser.h index 2615aead3..773eef7a8 100755 --- a/src/gui/webbrowser.h +++ b/src/gui/webbrowser.h @@ -82,10 +82,7 @@ class WebBrowser : public TabContent { void receiveMessageStatusChangeRequest(int message_id, WebPage::MessageStatusChange change); void onTitleChanged(const QString& new_title); - -#if QT_VERSION >= 0x050700 void onIconChanged(const QIcon& icon); -#endif signals: