diff options
| author | Florian RICHER <[email protected]> | 2026-05-15 17:29:46 +0200 |
|---|---|---|
| committer | Florian RICHER <[email protected]> | 2026-05-31 10:57:56 +0200 |
| commit | 2a72145eb09276a4576762b74cb976fcd4550e87 (patch) | |
| tree | c7be1a38ab004c12162edff698fceafe3d8e6488 /src/views | |
| parent | f622de7f00b6585c9a17e3ed208921582babf77e (diff) | |
dolphinview: Unselect navigator when click on background
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 1 | ||||
| -rw-r--r-- | src/views/dolphinview.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 74c5ecd23..97c1e926c 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -129,6 +129,7 @@ DolphinView::DolphinView(const QUrl &url, QWidget *parent) KItemListController *controller = new KItemListController(m_model, m_view, this); controller->setAutoActivationEnabled(GeneralSettings::autoExpandFolders()); + connect(controller, &KItemListController::clickViewBackground, this, &DolphinView::clickViewBackground); connect(controller, &KItemListController::doubleClickViewBackground, this, &DolphinView::doubleClickViewBackground); connect(controller, &KItemListController::typeAheadUsed, this, [this](const QString &typedString, std::optional<int> foundIndex) { if (foundIndex.has_value()) { diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 9b068f92e..35276f9ac 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -730,6 +730,12 @@ Q_SIGNALS: void currentDirectoryRemoved(); /** + * Emitted when the view's background is clicked. + * Used to trigger a user configured action. + */ + void clickViewBackground(Qt::MouseButton button); + + /** * Emitted when the view's background is double-clicked. * Used to trigger an user configured action. */ |
