Remove some #ifdefs.

This commit is contained in:
Martin Rotter 2017-09-21 07:01:31 +02:00
parent 58c6d8840e
commit 82c2970e1d
2 changed files with 0 additions and 8 deletions

View File

@ -47,9 +47,7 @@ void WebBrowser::createConnections() {
// Forward title/icon changes. // Forward title/icon changes.
connect(m_webView, &WebViewer::titleChanged, this, &WebBrowser::onTitleChanged); connect(m_webView, &WebViewer::titleChanged, this, &WebBrowser::onTitleChanged);
#if QT_VERSION >= 0x050700
connect(m_webView, &WebViewer::iconChanged, this, &WebBrowser::onIconChanged); connect(m_webView, &WebViewer::iconChanged, this, &WebBrowser::onIconChanged);
#endif
} }
void WebBrowser::updateUrl(const QUrl& url) { 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) { void WebBrowser::onIconChanged(const QIcon& icon) {
emit iconChanged(m_index, icon); emit iconChanged(m_index, icon);
} }
#endif
void WebBrowser::initializeLayout() { void WebBrowser::initializeLayout() {
m_toolBar->setFloatable(false); m_toolBar->setFloatable(false);
m_toolBar->setMovable(false); m_toolBar->setMovable(false);

View File

@ -82,10 +82,7 @@ class WebBrowser : public TabContent {
void receiveMessageStatusChangeRequest(int message_id, WebPage::MessageStatusChange change); void receiveMessageStatusChangeRequest(int message_id, WebPage::MessageStatusChange change);
void onTitleChanged(const QString& new_title); void onTitleChanged(const QString& new_title);
#if QT_VERSION >= 0x050700
void onIconChanged(const QIcon& icon); void onIconChanged(const QIcon& icon);
#endif
signals: signals: