578 size = self.cw.size() |
578 size = self.cw.size() |
579 self.__layout.addWidget(self.cw) |
579 self.__layout.addWidget(self.cw) |
580 self.resize(size) |
580 self.resize(size) |
581 self.setWindowTitle(self.cw.windowTitle()) |
581 self.setWindowTitle(self.cw.windowTitle()) |
582 |
582 |
583 self.cw.buttonBox.accepted[()].connect(self.accept) |
583 self.cw.buttonBox.accepted.connect(self.accept) |
584 self.cw.buttonBox.rejected[()].connect(self.reject) |
584 self.cw.buttonBox.rejected.connect(self.reject) |
585 |
585 |
586 def restartNeeded(self): |
586 def restartNeeded(self): |
587 """ |
587 """ |
588 Public method to check, if a restart of the IDE is required. |
588 Public method to check, if a restart of the IDE is required. |
589 |
589 |
612 self.setWindowTitle(self.cw.windowTitle()) |
612 self.setWindowTitle(self.cw.windowTitle()) |
613 |
613 |
614 self.setStyle(Preferences.getUI("Style"), |
614 self.setStyle(Preferences.getUI("Style"), |
615 Preferences.getUI("StyleSheet")) |
615 Preferences.getUI("StyleSheet")) |
616 |
616 |
617 self.cw.buttonBox.accepted[()].connect(self.close) |
617 self.cw.buttonBox.accepted.connect(self.close) |
618 self.cw.buttonBox.rejected[()].connect(self.close) |
618 self.cw.buttonBox.rejected.connect(self.close) |