]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add the "Lock Panels"/"Unlock Panels"-action to the context-menu of the Places Panel.
authorPeter Penz <peter.penz19@gmail.com>
Tue, 4 Jan 2011 17:54:58 +0000 (17:54 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 4 Jan 2011 17:54:58 +0000 (17:54 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1211709

src/dolphinmainwindow.cpp

index d19232dff9094e1898b6f3a8c1115624215bebda..bc5641e1e22901bd3fe0261f3e584ecc2fd5193d 100644 (file)
@@ -1710,6 +1710,12 @@ void DolphinMainWindow::setupDockWidgets()
     placesDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
 
     PlacesPanel* placesPanel = new PlacesPanel(placesDock);
+    QAction* separator = new QAction(placesPanel);
+    separator->setSeparator(true);
+    QList<QAction*> placesActions;
+    placesActions.append(separator);
+    placesActions.append(lockLayoutAction);
+    placesPanel->addActions(placesActions);
     placesPanel->setModel(DolphinSettings::instance().placesModel());
     placesPanel->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
     placesDock->setWidget(placesPanel);