From 86d8f3f8e651d73adb764e6f8ea35ae426454e9e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 19 Dec 2008 12:07:54 +0100 Subject: Properly setting toolbars! Yeah! --- src/browsermainwindow.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/browsermainwindow.cpp b/src/browsermainwindow.cpp index 32dd13a3..a37037f7 100644 --- a/src/browsermainwindow.cpp +++ b/src/browsermainwindow.cpp @@ -356,7 +356,7 @@ void BrowserMainWindow::setupMenu() void BrowserMainWindow::setupToolBar() { - m_navigationBar = new KToolBar( i18n("Navigation") , this, Qt::TopToolBarArea, false, false, false); + m_navigationBar = new KToolBar( i18n("Navigation") , this, Qt::TopToolBarArea, false, false, true); m_historyBack = new KAction( KIcon("go-previous"), i18n("Back"), this); m_historyBackMenu = new KMenu(this); @@ -386,15 +386,16 @@ void BrowserMainWindow::setupToolBar() // UI settings setContextMenuPolicy( Qt::PreventContextMenu ); -// m_navigationBar->setIconDimensions(22); -// m_navigationBar->setToolButtonStyle( Qt::ToolButtonIconOnly ); -// KToolBar::setToolBarsEditable( false ); -// KToolBar::setToolBarsLocked( true ); + // setting initial style (if user hasn't decided something else) + m_navigationBar->setIconDimensions(22); + m_navigationBar->setToolButtonStyle( Qt::ToolButtonIconOnly ); KConfig config("rekonqrc"); KConfigGroup group = config.group("navigation toobar"); - m_navigationBar->applySettings( group ); - + if ( group.exists() ) + { + m_navigationBar->applySettings( group ); + } } -- cgit v1.2.1