Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfilewidget.cpp
Show All 27 Lines | |||||
28 | #include "../pathhelpers_p.h" | 28 | #include "../pathhelpers_p.h" | ||
29 | 29 | | |||
30 | #include "kfileplacesview.h" | 30 | #include "kfileplacesview.h" | ||
31 | #include "kfileplacesmodel.h" | 31 | #include "kfileplacesmodel.h" | ||
32 | #include "kfilebookmarkhandler_p.h" | 32 | #include "kfilebookmarkhandler_p.h" | ||
33 | #include "kurlcombobox.h" | 33 | #include "kurlcombobox.h" | ||
34 | #include "kurlnavigator.h" | 34 | #include "kurlnavigator.h" | ||
35 | #include "kfilepreviewgenerator.h" | 35 | #include "kfilepreviewgenerator.h" | ||
36 | #include "kfilewidgetdocktitlebar_p.h" | ||||
36 | #include <config-kiofilewidgets.h> | 37 | #include <config-kiofilewidgets.h> | ||
37 | #include <defaults-kfile.h> | 38 | #include <defaults-kfile.h> | ||
38 | 39 | | |||
39 | #include <kactioncollection.h> | 40 | #include <kactioncollection.h> | ||
40 | #include <kactionmenu.h> | 41 | #include <kactionmenu.h> | ||
41 | #include <kconfiggroup.h> | 42 | #include <kconfiggroup.h> | ||
42 | #include <kdiroperator.h> | 43 | #include <kdiroperator.h> | ||
43 | #include <kfilefiltercombo.h> | 44 | #include <kfilefiltercombo.h> | ||
▲ Show 20 Lines • Show All 1306 Lines • ▼ Show 20 Line(s) | |||||
1350 | 1351 | | |||
1351 | void KFileWidgetPrivate::initSpeedbar() | 1352 | void KFileWidgetPrivate::initSpeedbar() | ||
1352 | { | 1353 | { | ||
1353 | if (placesDock) { | 1354 | if (placesDock) { | ||
1354 | return; | 1355 | return; | ||
1355 | } | 1356 | } | ||
1356 | 1357 | | |||
1357 | placesDock = new QDockWidget(i18nc("@title:window", "Places"), q); | 1358 | placesDock = new QDockWidget(i18nc("@title:window", "Places"), q); | ||
1358 | placesDock->setFeatures(QDockWidget::DockWidgetClosable); | 1359 | placesDock->setFeatures(QDockWidget::NoDockWidgetFeatures); | ||
1360 | placesDock->setTitleBarWidget(new KDEPrivate::KFileWidgetDockTitleBar(placesDock)); | ||||
apol: Does it really make sense that it's a dock if it can't be interacted with? | |||||
I don't know. You can still resize the panel, I also wanted to keep the patch as unintrusive as possible. broulik: I don't know. You can still resize the panel, I also wanted to keep the patch as unintrusive as… | |||||
1359 | 1361 | | |||
1360 | placesView = new KFilePlacesView(placesDock); | 1362 | placesView = new KFilePlacesView(placesDock); | ||
1361 | placesView->setModel(model); | 1363 | placesView->setModel(model); | ||
1362 | placesView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); | 1364 | placesView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); | ||
1363 | 1365 | | |||
1364 | placesView->setObjectName(QStringLiteral("url bar")); | 1366 | placesView->setObjectName(QStringLiteral("url bar")); | ||
1365 | QObject::connect(placesView, SIGNAL(urlChanged(QUrl)), | 1367 | QObject::connect(placesView, SIGNAL(urlChanged(QUrl)), | ||
1366 | q, SLOT(_k_enterUrl(QUrl))); | 1368 | q, SLOT(_k_enterUrl(QUrl))); | ||
▲ Show 20 Lines • Show All 1493 Lines • Show Last 20 Lines |
Does it really make sense that it's a dock if it can't be interacted with?