diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-18 02:41:19 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-18 02:41:19 +0100 |
commit | 498fa3d925a00144e2c2f64340c8d6480689ae15 (patch) | |
tree | 775e3c1542ecb3c2751c0e79c406d8798696850b | |
parent | Working around about: protocol.. (diff) | |
download | rekonq-498fa3d925a00144e2c2f64340c8d6480689ae15.tar.xz |
improve rekonq first execution && fix (finally :D ) configuration
of toolbar
-rw-r--r-- | src/mainwindow.cpp | 19 | ||||
-rw-r--r-- | src/rekonq.kcfg | 3 |
2 files changed, 16 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); + } } diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index a24508fc..f008d608 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -23,6 +23,9 @@ <!-- General Settings --> <group name="General"> + <entry name="FirstExecution" type="Bool"> + <default>true</default> + </entry> <entry name="startupBehaviour" type="Int"> <default>1</default> </entry> |