diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-12-16 01:09:39 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-12-16 01:09:39 +0100 |
commit | af9623896acb241a965a7d0823e12fd099031a39 (patch) | |
tree | 1c8a455631070d29bc2526a0015cb45c8b7ab5fc /src/browsermainwindow.cpp | |
parent | Some improvements in settings class.. (diff) | |
download | rekonq-af9623896acb241a965a7d0823e12fd099031a39.tar.xz |
Initial solution for UI resizing..
Now we can release rekonq 0.0.2 and thinking later about the problem..
Diffstat (limited to 'src/browsermainwindow.cpp')
-rw-r--r-- | src/browsermainwindow.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/browsermainwindow.cpp b/src/browsermainwindow.cpp index 7b6bfc05..60115b09 100644 --- a/src/browsermainwindow.cpp +++ b/src/browsermainwindow.cpp @@ -354,10 +354,6 @@ void BrowserMainWindow::setupToolBar() { m_navigationBar = new KToolBar( i18n("Navigation") , this, Qt::TopToolBarArea, false, false, false); - // UI settings - m_navigationBar->setContextMenuPolicy( Qt::NoContextMenu ); - m_navigationBar->setIconDimensions(22); - m_historyBack = new KAction( KIcon("go-previous"), i18n("Back"), this); m_historyBackMenu = new KMenu(this); m_historyBack->setMenu(m_historyBackMenu); @@ -379,12 +375,16 @@ void BrowserMainWindow::setupToolBar() m_navigationBar->addWidget( m_tabWidget->lineEditStack() ); - m_searchBar = new SearchBar( this ); + m_searchBar = new SearchBar( m_navigationBar ); connect(m_searchBar, SIGNAL(search(const KUrl&)), this, SLOT(loadUrl(const KUrl&))); m_navigationBar->addWidget(m_searchBar); -// KToolBar::setToolBarsEditable( false ); -// KToolBar::setToolBarsLocked( true ); + // UI settings + setContextMenuPolicy( Qt::PreventContextMenu ); + m_navigationBar->setIconDimensions(22); + + KToolBar::setToolBarsEditable( false ); + KToolBar::setToolBarsLocked( true ); } |