mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
[ToolButton] Added property "toolbar-look"
This property makes it possible for themes to customize look of additional ToolButtons in Navigation Toolbar.
This commit is contained in:
parent
1fd3d84320
commit
d25847cfce
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user