diff options
| author | Peter Penz <[email protected]> | 2007-04-14 16:50:51 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-04-14 16:50:51 +0000 |
| commit | b72bd12276b3ae794c942b0dcfca02332677b335 (patch) | |
| tree | 878a0143dd386ad98e5d27fe640a6d757e69278c /src/dolphinmainwindow.cpp | |
| parent | 93a1a2c8b0a8e60ff8f0d385311df0a5d9999e7e (diff) | |
allow to turn on/off the places panel by the menu
svn path=/trunk/KDE/kdebase/apps/; revision=653936
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index d621b3ffc..a6d584d37 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1265,7 +1265,6 @@ void DolphinMainWindow::setupDockWidgets() SidebarPage* infoWidget = new InfoSidebarPage(infoDock); infoDock->setWidget(infoWidget); - infoDock->toggleViewAction()->setText(i18n("Show Information Panel")); actionCollection()->addAction("show_info_panel", infoDock->toggleViewAction()); @@ -1273,7 +1272,7 @@ void DolphinMainWindow::setupDockWidgets() connectSidebarPage(infoWidget); // setup "Tree View" - QDockWidget* treeViewDock = new QDockWidget(i18n("Folders")); // TODO: naming? + QDockWidget* treeViewDock = new QDockWidget(i18n("Folders")); treeViewDock->setObjectName("treeViewDock"); treeViewDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); TreeViewSidebarPage* treeWidget = new TreeViewSidebarPage(treeViewDock); @@ -1297,6 +1296,10 @@ void DolphinMainWindow::setupDockWidgets() KFilePlacesView *listView = new KFilePlacesView(placesDock); placesDock->setWidget(listView); listView->setModel(DolphinSettings::instance().placesModel()); + + placesDock->toggleViewAction()->setText(i18n("Show Places Panel")); + actionCollection()->addAction("show_places_panel", placesDock->toggleViewAction()); + addDockWidget(Qt::LeftDockWidgetArea, placesDock); connect(listView, SIGNAL(urlChanged(KUrl)), this, SLOT(changeUrl(KUrl))); |
