From: Peter Penz Date: Sat, 6 Jan 2007 21:46:38 +0000 (+0000) Subject: Minor adjustments for the panels: X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/4a0a832ddb2e39142a313d0c1aeccc7c6fe8b97f Minor adjustments for the panels: - only let them align on the left and the right side - summarize the panels inside a sub menu entry svn path=/trunk/playground/utils/dolphin/; revision=620656 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 96a919747..7d0e09926 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1306,23 +1306,21 @@ void DolphinMainWindow::setupActions() void DolphinMainWindow::setupDockWidgets() { - QDockWidget *shortcutsDock = new QDockWidget(i18n("Shortcuts")); - - shortcutsDock->setObjectName("shortcutsDock"); + QDockWidget* shortcutsDock = new QDockWidget(i18n("Shortcuts")); + shortcutsDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); shortcutsDock->setWidget(new BookmarksSidebarPage(this)); - shortcutsDock->toggleViewAction()->setObjectName("show_shortcuts_pane"); + shortcutsDock->toggleViewAction()->setObjectName("show_shortcuts_panel"); shortcutsDock->toggleViewAction()->setText(i18n("Show Shortcuts Panel")); actionCollection()->insert(shortcutsDock->toggleViewAction()); addDockWidget(Qt::LeftDockWidgetArea, shortcutsDock); - QDockWidget *infoDock = new QDockWidget(i18n("Information")); - - infoDock->setObjectName("infoDock"); + QDockWidget* infoDock = new QDockWidget(i18n("Information")); + infoDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); infoDock->setWidget(new InfoSidebarPage(this)); - infoDock->toggleViewAction()->setObjectName("show_info_pane"); + infoDock->toggleViewAction()->setObjectName("show_info_panel"); infoDock->toggleViewAction()->setText(i18n("Show Information Panel")); actionCollection()->insert(infoDock->toggleViewAction()); diff --git a/src/dolphinui.rc b/src/dolphinui.rc index 33b689e76..22bfe909e 100644 --- a/src/dolphinui.rc +++ b/src/dolphinui.rc @@ -1,7 +1,7 @@ - + Create New @@ -16,17 +16,17 @@ - + - + View Mode - + Sort @@ -41,13 +41,16 @@ - + + Panels + + + + Navigation Bar - -