diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-11-29 12:15:17 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-11-29 12:15:17 +0100 |
commit | 129932ca513ed7ef865669fa81020043bcfa7ba0 (patch) | |
tree | 03fba7638c0323672e7958245e9afb0663ca2c1a /src/browsermainwindow.cpp | |
parent | Various adjustments. Nothing really important.Various adjustments. Nothing re... (diff) | |
download | rekonq-129932ca513ed7ef865669fa81020043bcfa7ba0.tar.xz |
Fixing ToolBar, some icons and code..
Diffstat (limited to 'src/browsermainwindow.cpp')
-rw-r--r-- | src/browsermainwindow.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/browsermainwindow.cpp b/src/browsermainwindow.cpp index cbf7eb54..3a79f995 100644 --- a/src/browsermainwindow.cpp +++ b/src/browsermainwindow.cpp @@ -69,8 +69,9 @@ BrowserMainWindow::BrowserMainWindow(QWidget *parent, Qt::WindowFlags flags) , m_reload(0) , m_bookmarkMenu(0) { + // delete widget accepting close event setAttribute(Qt::WA_DeleteOnClose, true); - statusBar()->setSizeGripEnabled(true); + setupMenu(); setupToolBar(); @@ -372,7 +373,7 @@ void BrowserMainWindow::setupMenu() void BrowserMainWindow::setupToolBar() { - m_navigationBar = (KToolBar *) addToolBar(i18n("Navigation")); + m_navigationBar = new KToolBar( i18n("Navigation") , this, Qt::TopToolBarArea, true, false, false); m_historyBack = new KAction( KIcon("go-previous"), i18n("Back"), this); m_historyBackMenu = new KMenu(this); @@ -398,6 +399,11 @@ void BrowserMainWindow::setupToolBar() m_searchBar = new SearchBar(m_navigationBar); m_navigationBar->addWidget(m_searchBar); connect(m_searchBar, SIGNAL(search(const QUrl&)), this, SLOT(loadUrl(const QUrl&))); + + // UI settings + m_navigationBar->setIconDimensions(16); + m_navigationBar->setContextMenuPolicy( Qt::NoContextMenu ); + KToolBar::setToolBarsLocked( true ); } |