1814 size = self.cw.size() |
1814 size = self.cw.size() |
1815 self.setCentralWidget(self.cw) |
1815 self.setCentralWidget(self.cw) |
1816 self.resize(size) |
1816 self.resize(size) |
1817 self.setWindowTitle(self.cw.windowTitle()) |
1817 self.setWindowTitle(self.cw.windowTitle()) |
1818 |
1818 |
1819 self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) |
1819 self.setStyle( |
|
1820 styleName=Preferences.getUI("Style"), |
|
1821 styleSheetFile=Preferences.getUI("StyleSheet"), |
|
1822 itemClickBehavior=Preferences.getUI("ActivateItemOnSingleClick"), |
|
1823 ) |
1820 |
1824 |
1821 # Setting the style sheet above set the button state of the Apply button |
1825 # Setting the style sheet above set the button state of the Apply button |
1822 # to be visible. So we need to hide it again. |
1826 # to be visible. So we need to hide it again. |
1823 self.cw.buttonBox.button(QDialogButtonBox.StandardButton.Apply).hide() |
1827 self.cw.buttonBox.button(QDialogButtonBox.StandardButton.Apply).hide() |
1824 self.cw.accepted.connect(self.accept) |
1828 self.cw.accepted.connect(self.accept) |