eric7/UI/UserInterface.py

branch
eric7
changeset 8430
14c69f0ccca5
parent 8428
2deec2f8a9ab
child 8431
bed315a45088
equal deleted inserted replaced
8428:2deec2f8a9ab 8430:14c69f0ccca5
759 QApplication.setKeyboardInputInterval(interval) 759 QApplication.setKeyboardInputInterval(interval)
760 760
761 # connect to the desktop environment session manager 761 # connect to the desktop environment session manager
762 app.commitDataRequest.connect(self.__commitData, 762 app.commitDataRequest.connect(self.__commitData,
763 Qt.ConnectionType.DirectConnection) 763 Qt.ConnectionType.DirectConnection)
764 app.saveStateRequest.connect(self.__saveState)
765 764
766 def networkAccessManager(self): 765 def networkAccessManager(self):
767 """ 766 """
768 Public method to get a reference to the network access manager object. 767 Public method to get a reference to the network access manager object.
769 768
7553 manager.cancel() 7552 manager.cancel()
7554 else: 7553 else:
7555 # We did not get permission to interact, play it safe and 7554 # We did not get permission to interact, play it safe and
7556 # save all data. 7555 # save all data.
7557 self.viewmanager.saveAllEditors() 7556 self.viewmanager.saveAllEditors()
7558
7559 def __saveState(self, manager: QSessionManager):
7560 """
7561 Private slot to save the state when instructed by the desktop session
7562 manager.
7563
7564 @param manager reference to the desktop session manager
7565 @type QSessionManager
7566 """
7567 # TODO: implement saving the state
7568 print("__saveState() call by session manager")

eric ide

mercurial