┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-06 21:46:38 +0000
committerPeter Penz <[email protected]>2007-01-06 21:46:38 +0000
commit4a0a832ddb2e39142a313d0c1aeccc7c6fe8b97f (patch)
treeac333da252f76cdc4d611a2d462b1d77b0fe088e /src/dolphinmainwindow.cpp
parent8fb8b7d7112eb3984d78d150382fce029d9ceeeb (diff)
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
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp14
1 files changed, 6 insertions, 8 deletions
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());