* 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
This commit is contained in:
Peter Penz 2007-10-24 20:28:28 +00:00
parent 6339218179
commit 6c1153092e

View file

@ -1373,19 +1373,20 @@ void DolphinMainWindow::setupDockWidgets()
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()