1
0
Fork 0
mirror of synced 2024-06-03 03:04:42 +12:00

Change kinetic scroll exceptions to property

This commit is contained in:
Dummerle 2022-03-17 19:51:19 +01:00
parent 16fa26e1df
commit 324530171e
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1
2 changed files with 2 additions and 2 deletions

View file

@ -68,9 +68,8 @@ class MainWindow(QMainWindow):
)
# enable kinetic scrolling
exclude = ["wrapper_scroll_area"]
for scroll_area in self.findChildren(QScrollArea):
if scroll_area.objectName() not in exclude:
if not scroll_area.property("no_kinetic_scroll"):
QScroller.grabGesture(scroll_area.viewport(), QScroller.LeftMouseButtonGesture)
# fix scrolling

View file

@ -68,6 +68,7 @@ class WrapperSettings(QFrame, Ui_WrapperSettings):
self.setupUi(self)
self.setProperty("frameShape", 6)
self.widget_stack.insertWidget(0, self.wrapper_scroll_area)
self.wrapper_scroll_area.setProperty("no_kinetic_scroll", True)
self.placeholder.deleteLater()
self.scroll_content.deleteLater()
self.scroll_content = WrapperContainer(