Skip to content
Snippets Groups Projects
Commit 6c115309 authored by Peter Penz's avatar Peter Penz
Browse files

* don't show a horizontal scrollbar in the places panel

* minor coding style update: replace 'listView' by 'placesView'

svn path=/trunk/KDE/kdebase/apps/; revision=728988
parent 63392181
No related branches found
Tags v3.95
No related merge requests found
......@@ -1370,22 +1370,23 @@ void DolphinMainWindow::setupDockWidgets()
terminalDock->hide();
}
QDockWidget *placesDock = new QDockWidget(i18nc("@title:window", "Places"));
QDockWidget* placesDock = new QDockWidget(i18nc("@title:window", "Places"));
placesDock->setObjectName("placesDock");
placesDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
KFilePlacesView *listView = new KFilePlacesView(placesDock);
placesDock->setWidget(listView);
listView->setModel(DolphinSettings::instance().placesModel());
KFilePlacesView* placesView = new KFilePlacesView(placesDock);
placesDock->setWidget(placesView);
placesView->setModel(DolphinSettings::instance().placesModel());
placesView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
placesDock->toggleViewAction()->setText(i18nc("@title:window", "Places"));
placesDock->toggleViewAction()->setShortcut(Qt::Key_F9);
actionCollection()->addAction("show_places_panel", placesDock->toggleViewAction());
addDockWidget(Qt::LeftDockWidgetArea, placesDock);
connect(listView, SIGNAL(urlChanged(KUrl)),
connect(placesView, SIGNAL(urlChanged(KUrl)),
this, SLOT(changeUrl(KUrl)));
connect(this, SIGNAL(urlChanged(KUrl)),
listView, SLOT(setUrl(KUrl)));
placesView, SLOT(setUrl(KUrl)));
}
void DolphinMainWindow::updateHistory()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment