summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-18 02:41:19 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-18 02:41:19 +0100
commit498fa3d925a00144e2c2f64340c8d6480689ae15 (patch)
tree775e3c1542ecb3c2751c0e79c406d8798696850b /src/mainwindow.cpp
parentWorking around about: protocol.. (diff)
downloadrekonq-498fa3d925a00144e2c2f64340c8d6480689ae15.tar.xz
improve rekonq first execution && fix (finally :D ) configuration
of toolbar
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 5237a20d..e965aa19 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -168,8 +168,6 @@ MainWindow::~MainWindow()
void MainWindow::setupToolbars()
{
// ============ Main ToolBar ================================
- m_mainBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
-
m_mainBar->addAction( actionByName(KStandardAction::name(KStandardAction::Back)) );
m_mainBar->addAction( actionByName(KStandardAction::name(KStandardAction::Forward)) );
m_mainBar->addSeparator();
@@ -187,14 +185,23 @@ void MainWindow::setupToolbars()
m_mainBar->show(); // this just to fix reopening rekonq after fullscreen close
// =========== Bookmarks ToolBar ================================
- m_bmBar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
m_bmBar->setAcceptDrops(true);
m_bmBar->setContextMenuPolicy(Qt::CustomContextMenu);
- m_bmBar->setIconDimensions(16);
Application::bookmarkProvider()->setupBookmarkBar(m_bmBar);
- KToolBar::setToolBarsEditable(false);
- KToolBar::setToolBarsLocked(true);
+ if(ReKonfig::firstExecution())
+ {
+ m_mainBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
+
+ m_bmBar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
+ m_bmBar->setIconDimensions(16);
+ m_bmBar->hide();
+
+ KToolBar::setToolBarsEditable(false);
+ KToolBar::setToolBarsLocked(true);
+
+ ReKonfig::setFirstExecution(false);
+ }
}