Exemplo n.º 1
0
 def showEvent(self, event):
     """Overloaded to restore the geometry when the widget is shown
     """
     QDialog.showEvent(self, event)
     if self.save_position and not self.__was_restored:
         # Restore saved geometry on (first) show
         self.__restoreWidgetGeometry()
         self.__was_restored = True
     self.__quicktipOnce()
Exemplo n.º 2
0
 def showEvent(self, event):
     """Overloaded to restore the geometry when the widget is shown
     """
     QDialog.showEvent(self, event)
     if self.save_position and not self.__was_restored:
         # Restore saved geometry on show
         self.__restoreWidgetGeometry()
         self.__was_restored = True
     self.__quicktipOnce()
Exemplo n.º 3
0
 def showEvent(self, event):
     """Overloaded to restore the geometry when the widget is shown
     """
     QDialog.showEvent(self, event)
     if self.save_position and not self.__was_restored:
         # Restore saved geometry on (first) show
         if self.__splitter is not None:
             self.__splitter.setControlAreaVisible(self.controlAreaVisible)
         self.__restoreWidgetGeometry()
         self.__was_restored = True
     self.__quicktipOnce()
Exemplo n.º 4
0
 def showEvent(self, event):
     """Overloaded to restore the geometry when the widget is shown
     """
     QDialog.showEvent(self, event)
     if self.save_position and not self.__was_restored:
         # Restore saved geometry on (first) show
         if self.__splitter is not None:
             self.__splitter.setControlAreaVisible(self.controlAreaVisible)
         self.__restoreWidgetGeometry()
         self.__was_restored = True
     self.__quicktipOnce()
Exemplo n.º 5
0
    def showEvent(self, event):
        """Overloaded to restore the geometry when the widget is shown
        """
        QDialog.showEvent(self, event)
        if self.save_position and not self.__was_restored:
            # Restore saved geometry on (first) show
            if self.__splitter is not None:
                self.__setControlAreaVisible(self.controlAreaVisible)
            if self.savedWidgetGeometry is not None:
                self.__restoreWidgetGeometry(bytes(self.savedWidgetGeometry))
            self.__was_restored = True

        if not self.__was_shown:
            # Mark as explicitly moved/resized if not already. QDialog would
            # otherwise adjust position/size on subsequent hide/show
            # (move/resize events coming from the window manager do not set
            # these flags).
            self.setAttribute(Qt.WA_Moved, True)
            self.setAttribute(Qt.WA_Resized, True)
            self.__was_shown = True
        self.__quicktipOnce()
Exemplo n.º 6
0
    def showEvent(self, event):
        """Overloaded to restore the geometry when the widget is shown
        """
        QDialog.showEvent(self, event)
        if self.save_position and not self.__was_restored:
            # Restore saved geometry on (first) show
            if self.__splitter is not None:
                self.__setControlAreaVisible(self.controlAreaVisible)
            if self.savedWidgetGeometry is not None:
                self.__restoreWidgetGeometry(bytes(self.savedWidgetGeometry))
            self.__was_restored = True

        if not self.__was_shown:
            # Mark as explicitly moved/resized if not already. QDialog would
            # otherwise adjust position/size on subsequent hide/show
            # (move/resize events coming from the window manager do not set
            # these flags).
            self.setAttribute(Qt.WA_Moved, True)
            self.setAttribute(Qt.WA_Resized, True)
            self.__was_shown = True
        self.__quicktipOnce()
 def showEvent(self, event):
     # Clear the triggered action before show.
     self.__triggeredAction = None
     QDialog.showEvent(self, event)
Exemplo n.º 8
0
 def showEvent(self, event):
     # Clear the triggered action before show.
     self.__triggeredAction = None
     QDialog.showEvent(self, event)