diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-12-19 12:07:54 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-12-19 12:07:54 +0100 |
commit | 86d8f3f8e651d73adb764e6f8ea35ae426454e9e (patch) | |
tree | 5f9a50154cd8d85d7be0f2af6ef2f7317d29c34c | |
parent | Lots of improvements in save/restore state functions. (diff) | |
download | rekonq-86d8f3f8e651d73adb764e6f8ea35ae426454e9e.tar.xz |
Properly setting toolbars! Yeah!
-rw-r--r-- | src/browsermainwindow.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
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 ); + } } |