eric7/UI/Previewers/PreviewerQSS.py

branch
eric7
changeset 8834
c7c3cedb5db3
parent 8318
962bce857696
child 8843
586ee2c4553a
--- a/eric7/UI/Previewers/PreviewerQSS.py	Fri Dec 17 11:30:36 2021 +0100
+++ b/eric7/UI/Previewers/PreviewerQSS.py	Fri Dec 17 12:19:22 2021 +0100
@@ -9,6 +9,7 @@
 
 import os
 
+from PyQt6.QtCore import pyqtSlot, Qt
 from PyQt6.QtWidgets import (
     QWidget, QMenu, QLabel, QHeaderView, QListWidgetItem
 )
@@ -83,3 +84,13 @@
                     self.scrollAreaWidgetContents.setStyleSheet("")
                 self.toolButton.menu().setStyleSheet(
                     self.scrollAreaWidgetContents.styleSheet())
+    
+    @pyqtSlot(int)
+    def on_checkBox_stateChanged(self, state):
+        """
+        Private slot to synchronize the checkbox state.
+        
+        @param state state of the enabled check box
+        @type int
+        """
+        self.disabledCheckBox.setCheckState(Qt.CheckState(state))

eric ide

mercurial