diff options
| author | Alessio Bonfiglio <[email protected]> | 2021-12-17 14:11:46 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2021-12-17 14:11:46 +0000 |
| commit | 65b18bf935faad814b9ab3b318fdbfb4772d2051 (patch) | |
| tree | 19307e31947fa01789a33e18cc50c3c0a582143e /src/panels/places/placespanel.h | |
| parent | 3c5bf0c96c1e419938d73e88d82366585e3e6f65 (diff) | |
Enable Ctrl/Shift-Click to open folder in a new tab/window
and more
Diffstat (limited to 'src/panels/places/placespanel.h')
| -rw-r--r-- | src/panels/places/placespanel.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h index 39f8da365..ce28c8c08 100644 --- a/src/panels/places/placespanel.h +++ b/src/panels/places/placespanel.h @@ -35,7 +35,8 @@ public: Q_SIGNALS: void placeActivated(const QUrl& url); - void placeMiddleClicked(const QUrl& url); + void placeActivatedInNewTab(const QUrl &url); + void placeActivatedInNewActiveTab(const QUrl &url); void errorMessage(const QString& error); void storageTearDownRequested(const QString& mountPath); void storageTearDownExternallyRequested(const QString& mountPath); @@ -64,6 +65,9 @@ private Q_SLOTS: void slotShowTooltip(); private: + enum class TriggerItemModifier { None, ToNewTab, ToNewActiveTab, ToNewWindow }; + +private: void addEntry(); void editEntry(int index); @@ -73,7 +77,7 @@ private: */ void selectItem(); - void triggerItem(int index, Qt::MouseButton button); + void triggerItem(int index, TriggerItemModifier modifier); QAction* buildGroupContextMenu(QMenu* menu, int index); @@ -83,7 +87,7 @@ private: PlacesView* m_view; QUrl m_storageSetupFailedUrl; - Qt::MouseButton m_triggerStorageSetupButton; + TriggerItemModifier m_triggerStorageSetupModifier; int m_itemDropEventIndex; QMimeData* m_itemDropEventMimeData; |
