|
|
@ -276,13 +276,19 @@ class relForm(QtWidgets.QMainWindow):
|
|
|
|
event.accept()
|
|
|
|
event.accept()
|
|
|
|
|
|
|
|
|
|
|
|
def save_settings(self):
|
|
|
|
def save_settings(self):
|
|
|
|
# self.settings.setValue("width",)
|
|
|
|
print('save')
|
|
|
|
pass
|
|
|
|
self.settings.setValue('maingui/geometry', self.saveGeometry())
|
|
|
|
|
|
|
|
self.settings.setValue('maingui/windowState', self.saveState())
|
|
|
|
|
|
|
|
|
|
|
|
def restore_settings(self):
|
|
|
|
def restore_settings(self):
|
|
|
|
# self.settings.value('session_name','default').toString()
|
|
|
|
# self.settings.value('session_name','default').toString()
|
|
|
|
self.setMultiline(self.settings.value('multiline','false')=='true')
|
|
|
|
self.setMultiline(self.settings.value('multiline','false')=='true')
|
|
|
|
self.ui.txtMultiQuery.setPlainText(self.settings.value('multiline/query',''))
|
|
|
|
self.ui.txtMultiQuery.setPlainText(self.settings.value('multiline/query',''))
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
self.restoreGeometry(self.settings.value('maingui/geometry'))
|
|
|
|
|
|
|
|
self.restoreState(self.settings.value('maingui/windowState'))
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
def showSurvey(self):
|
|
|
|
def showSurvey(self):
|
|
|
|
if self.Survey == None:
|
|
|
|
if self.Survey == None:
|
|
|
|