diff options
| -rw-r--r-- | src/views/dolphinview.cpp | 6 | ||||
| -rw-r--r-- | src/views/dolphinview.h | 5 | ||||
| -rw-r--r-- | src/views/dolphinviewactionhandler.cpp | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 78e718bf2..4c909caca 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1104,6 +1104,12 @@ void DolphinView::slotItemActivated(int index) { abortTwoClicksRenaming(); + const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers(); + if (modifier & Qt::ALT) { + Q_EMIT requestPropertyDialog(); + return; + } + const KFileItem item = m_model->fileItem(index); if (!item.isNull()) { Q_EMIT itemActivated(item); diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 7c077d292..4a400ce2a 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -497,6 +497,11 @@ Q_SIGNALS: void itemActivated(const KFileItem &item); /** + * request the property dialog + */ + void requestPropertyDialog(); + + /** * Is emitted when clicking on a file with the middle mouse button. * @note: This will not be emitted for folders or file archives that will/can be opened like folders. */ diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp index f85539e71..99d3e0111 100644 --- a/src/views/dolphinviewactionhandler.cpp +++ b/src/views/dolphinviewactionhandler.cpp @@ -63,6 +63,7 @@ void DolphinViewActionHandler::setCurrentView(DolphinView *view) connect(view, &DolphinView::sortRoleChanged, this, &DolphinViewActionHandler::slotSortRoleChanged); connect(view, &DolphinView::zoomLevelChanged, this, &DolphinViewActionHandler::slotZoomLevelChanged); connect(view, &DolphinView::writeStateChanged, this, &DolphinViewActionHandler::slotWriteStateChanged); + connect(view, &DolphinView::requestPropertyDialog, this, &DolphinViewActionHandler::slotProperties); slotWriteStateChanged(view->isFolderWritable()); connect(view, &DolphinView::selectionModeChangeRequested, this, [this](bool enabled) { Q_EMIT selectionModeChangeTriggered(enabled); |
