summaryrefslogtreecommitdiff
path: root/src/browsermainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-16 01:09:39 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-16 01:09:39 +0100
commitaf9623896acb241a965a7d0823e12fd099031a39 (patch)
tree1c8a455631070d29bc2526a0015cb45c8b7ab5fc /src/browsermainwindow.cpp
parentSome improvements in settings class.. (diff)
downloadrekonq-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.cpp14
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 );
}