Revert "add escape hatch for new clicking behaviour, in case it causes problems"
This reverts commit 678756c3e9
.
This commit is contained in:
parent
88c002f4eb
commit
2a585c5e5a
@ -668,9 +668,6 @@ create table if not exists profiles
|
|||||||
def set_recording_driver(self, driver: RecordingDriver) -> None:
|
def set_recording_driver(self, driver: RecordingDriver) -> None:
|
||||||
self.profile["recordingDriver"] = driver.value
|
self.profile["recordingDriver"] = driver.value
|
||||||
|
|
||||||
def sidebar_left_click_modifiers(self) -> bool:
|
|
||||||
return self.profile.get("sidebarLeftClick", False)
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
def apply_profile_options(self) -> None:
|
def apply_profile_options(self) -> None:
|
||||||
|
@ -315,10 +315,9 @@ class SidebarTreeView(QTreeView):
|
|||||||
self.setHeaderHidden(True)
|
self.setHeaderHidden(True)
|
||||||
self.setIndentation(15)
|
self.setIndentation(15)
|
||||||
self.setAutoExpandDelay(600)
|
self.setAutoExpandDelay(600)
|
||||||
if not self.mw.pm.sidebar_left_click_modifiers():
|
# pylint: disable=no-member
|
||||||
# pylint: disable=no-member
|
mode = QAbstractItemView.SelectionMode.ExtendedSelection # type: ignore
|
||||||
mode = QAbstractItemView.SelectionMode.ExtendedSelection # type: ignore
|
self.setSelectionMode(mode)
|
||||||
self.setSelectionMode(mode)
|
|
||||||
self.setDragDropMode(QAbstractItemView.InternalMove)
|
self.setDragDropMode(QAbstractItemView.InternalMove)
|
||||||
self.setDragDropOverwriteMode(False)
|
self.setDragDropOverwriteMode(False)
|
||||||
|
|
||||||
@ -434,10 +433,7 @@ class SidebarTreeView(QTreeView):
|
|||||||
def mouseReleaseEvent(self, event: QMouseEvent) -> None:
|
def mouseReleaseEvent(self, event: QMouseEvent) -> None:
|
||||||
super().mouseReleaseEvent(event)
|
super().mouseReleaseEvent(event)
|
||||||
if event.button() == Qt.LeftButton:
|
if event.button() == Qt.LeftButton:
|
||||||
if (
|
if not self._keyboard_modified_pressed():
|
||||||
not self._keyboard_modified_pressed()
|
|
||||||
or self.mw.pm.sidebar_left_click_modifiers()
|
|
||||||
):
|
|
||||||
self._on_click_current()
|
self._on_click_current()
|
||||||
elif event.button() == Qt.RightButton:
|
elif event.button() == Qt.RightButton:
|
||||||
if self._keyboard_modified_pressed():
|
if self._keyboard_modified_pressed():
|
||||||
|
Loading…
Reference in New Issue
Block a user