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());
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui version="2" name="dolphin" >
<MenuBar>
- <Menu name="file" >
+ <Menu name="file">
<Action name="new_window" />
<Menu name="create_new" >
<text>Create New</text>
<Separator/>
<Action name="properties" />
</Menu>
- <Menu name="edit" >
+ <Menu name="edit">
<Action name="select_all" />
<Action name="invert_selection" />
</Menu>
- <Menu name="view" >
+ <Menu name="view">
<Menu name="view_mode" >
<text>View Mode</text>
<Action name="icons" />
<Action name="details" />
</Menu>
- <Menu name="sort" >
+ <Menu name="sort">
<text>Sort</text>
<Action name="by_name" />
<Action name="by_size" />
<Action name="reload" />
<Action name="stop" />
<Separator/>
- <Menu name="navigation_bar" >
+ <Menu name="panels">
+ <text>Panels</text>
+ <Action name="show_shortcuts_panel" />
+ <Action name="show_info_panel" />
+ </Menu>
+ <Menu name="navigation_bar">
<text>Navigation Bar</text>
<Action name="editable_location" />
<Action name="edit_location" />
</Menu>
- <Action name="show_shortcuts_pane" />
- <Action name="show_info_pane" />
<Separator/>
<Action name="view_properties" />
</Menu>