def changeEvent(self, event):
     if event.type() == QEvent.WindowStateChange:
         self._enableWindowActions(not self.isMinimized())
         controller = self.app.documentController
         if controller.documents and controller.documents[-1] == self:
             NodeBoxDocumentBaseClass.windowMaximized = self.isMaximized()
     QMainWindow.changeEvent(self, event)
Example #2
0
 def changeEvent(self, event):
     if event.type() == QEvent.WindowStateChange:
         self._enableWindowActions(not self.isMinimized())
         controller = self.app.documentController
         if controller.documents and controller.documents[-1] == self:
             NodeBoxDocumentBaseClass.windowMaximized = self.isMaximized()
     QMainWindow.changeEvent(self, event)
Example #3
0
    def changeEvent(self, event):
        """ Search for a language change event

        This event have to call retranslateUi to change interface language on
        the fly.
        """
        if event.type() == QEvent.LanguageChange:
            self.retranslateUi(self)
            self.translation()
        else:
            QMainWindow.changeEvent(self, event)
Example #4
0
    def changeEvent(self, event):
        """ Search for a language change event

        This event have to call retranslateUi to change interface language on
        the fly.
        """
        if event.type() == QEvent.LanguageChange:
            self.retranslateUi(self)
            self.translation()
        else:
            QMainWindow.changeEvent(self, event)