mouse wheel scolling

This commit is contained in:
2025-03-20 16:23:11 +01:00
parent ea6fb7c870
commit b3eeb2d60c
4 changed files with 1102 additions and 1060 deletions
+10
View File
@@ -124,6 +124,7 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS):
path = path+'/'+i
self.tabWidget.setStyleSheet('background-image: url('+path+'/tools/bg/Capture.png);')
self.verticalScrollBar.hide()
self.commandLinkButton.clicked.connect(self.chargement_qpt)
self.radioButton_9.clicked.connect(self.statu_atlas)
self.radioButton_10.clicked.connect(self.statu_source)
@@ -134,6 +135,7 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS):
self.commandLinkButton_2.clicked.connect(self.load_ortho)
self.commandLinkButton_3.clicked.connect(self.load_osm)
self.CustomeLogo.clicked.connect(self.deflogoteck)
self.verticalScrollBar.valueChanged.connect(self.moveFrame)
## On ajoute le nom des templates à la liste déroulante de l'onglet "mises en page" :
mises_en_page = []
@@ -193,6 +195,14 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS):
self.hide_source()
self.hide_atlas()
def wheelEvent(self,event):
if (event.angleDelta().y() >= 1):
vsb = self.verticalScrollBar.value()+20
else:
vsb = self.verticalScrollBar.value()-20
self.verticalScrollBar.setValue(vsb)
def moveFrame(self):
self.frame.move(self.frame.x(),self.verticalScrollBar.value())
def update_logo_library(self):
self.mComboBox_4.clear()
logo_library = []