From feed976d8865cc378989f1e5eb856c9b497f9ac2 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 26 Aug 2009 23:29:37 +0200 Subject: Toolbar UI customizable --- src/mainwindow.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bf0f4f36..6c31a5b7 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -159,7 +159,6 @@ SidePanel *MainWindow::sidePanel() void MainWindow::setupToolbar() { KToolBar *mainToolBar = new KToolBar( QString("MainToolBar"), this, Qt::TopToolBarArea); - mainToolBar->setContextMenuPolicy(Qt::PreventContextMenu); mainToolBar->setToolButtonStyle(Qt::ToolButtonIconOnly); mainToolBar->addAction( actionByName("history_back") ); mainToolBar->addAction( actionByName("history_forward") ); @@ -474,10 +473,9 @@ void MainWindow::slotUpdateConfiguration() defaultSettings->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, ReKonfig::offlineStorageDatabaseEnabled()); defaultSettings->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, ReKonfig::offlineWebApplicationCacheEnabled()); defaultSettings->setAttribute(QWebSettings::LocalStorageDatabaseEnabled, ReKonfig::localStorageDatabaseEnabled()); - /** - * Applies user defined CSS to all open webpages. If there no longer is a - * user defined CSS removes it from all open webpages. - */ + + // Applies user defined CSS to all open webpages. If there no longer is a + // user defined CSS removes it from all open webpages. defaultSettings->setUserStyleSheetUrl(ReKonfig::userCSS()); // ====== load Settings on main classes -- cgit v1.2.1