diff --git a/src/lib/navigation/navigationbar.cpp b/src/lib/navigation/navigationbar.cpp index 1f05458da..93b4963fd 100644 --- a/src/lib/navigation/navigationbar.cpp +++ b/src/lib/navigation/navigationbar.cpp @@ -121,7 +121,7 @@ NavigationBar::NavigationBar(BrowserWindow* window) m_navigationSplitter->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); m_navigationSplitter->setCollapsible(0, false); - m_exitFullscreen = new ToolButton(); + m_exitFullscreen = new ToolButton(this); m_exitFullscreen->setObjectName("navigation-button-exitfullscreen"); m_exitFullscreen->setToolTip(tr("Exit Fullscreen")); m_exitFullscreen->setToolButtonStyle(Qt::ToolButtonIconOnly); diff --git a/src/lib/tools/toolbutton.cpp b/src/lib/tools/toolbutton.cpp index 25223e726..e799e894a 100644 --- a/src/lib/tools/toolbutton.cpp +++ b/src/lib/tools/toolbutton.cpp @@ -129,6 +129,10 @@ void ToolButton::setToolbarButtonLook(bool enable) else { m_options &= ~ToolBarLookOption; } + + setProperty("toolbar-look", QVariant(enable)); + style()->unpolish(this); + style()->polish(this); } void ToolButton::menuAboutToHide()