[qcineoob] thumbnails resize, showThumbnailCheck state saved in config
This commit is contained in:
parent
d6a0291deb
commit
971ea3346a
5 changed files with 9 additions and 4 deletions
|
|
@ -72,6 +72,9 @@ class MainWindow(QtMainWindow):
|
|||
|
||||
count = self.config.get('settings', 'maxresultsnumber')
|
||||
self.ui.countSpin.setValue(int(count))
|
||||
showT = self.config.get('settings', 'showthumbnails')
|
||||
print showT
|
||||
self.ui.showTCheck.setChecked(showT == '1')
|
||||
|
||||
self.connect(self.ui.actionBackends, SIGNAL("triggered()"), self.backendsConfig)
|
||||
self.connect(self.ui.actionQuit, SIGNAL("triggered()"), self.close)
|
||||
|
|
@ -443,6 +446,7 @@ class MainWindow(QtMainWindow):
|
|||
self.ui.backendEdit.currentIndex()).toString()))
|
||||
self.saveSearchHistory()
|
||||
self.config.set('settings', 'maxresultsnumber', self.ui.countSpin.value())
|
||||
self.config.set('settings', 'showthumbnails', '1' if self.ui.showTCheck.isChecked() else '0')
|
||||
|
||||
self.config.save()
|
||||
ev.accept()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue