┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-04-25 23:01:15 +0200
committerPeter Penz <[email protected]>2012-04-25 23:02:40 +0200
commit640696db728ad3163384e19f789ebc022d183da6 (patch)
tree15f546586488c39edbe307fab28cd5e3bc8f8215 /src/dolphinmainwindow.cpp
parent804021a8db9f41557a59ba15a6b4e4b62710d897 (diff)
Places panel: Internal cleanup
Move the bookmark handling into a custom model, so that the PlacesPanel only contains UI + controller code.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 3eb9b7608..01cc62fce 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1738,14 +1738,7 @@ 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(DolphinPlacesModel::instance());
- //placesPanel->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ placesPanel->setCustomContextMenuActions(QList<QAction*>() << lockLayoutAction);
placesDock->setWidget(placesPanel);
QAction* placesAction = placesDock->toggleViewAction();