mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
* 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:
parent
6339218179
commit
6c1153092e
1 changed files with 7 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue