Preferences/ConfigurationPages/ViewmanagerPage.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3025
67064c71df21
child 3145
a9de05d4a22f
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
59 59
60 def save(self): 60 def save(self):
61 """ 61 """
62 Public slot to save the Viewmanager configuration. 62 Public slot to save the Viewmanager configuration.
63 """ 63 """
64 vm = \ 64 vm = self.windowComboBox.itemData(
65 self.windowComboBox.itemData(self.windowComboBox.currentIndex()) 65 self.windowComboBox.currentIndex())
66 Preferences.setViewManager(vm) 66 Preferences.setViewManager(vm)
67 Preferences.setUI("TabViewManagerFilenameLength", 67 Preferences.setUI(
68 "TabViewManagerFilenameLength",
68 self.filenameLengthSpinBox.value()) 69 self.filenameLengthSpinBox.value())
69 Preferences.setUI("TabViewManagerFilenameOnly", 70 Preferences.setUI(
71 "TabViewManagerFilenameOnly",
70 self.filenameOnlyCheckBox.isChecked()) 72 self.filenameOnlyCheckBox.isChecked())
71 Preferences.setUI("RecentNumber", 73 Preferences.setUI(
74 "RecentNumber",
72 self.recentFilesSpinBox.value()) 75 self.recentFilesSpinBox.value())
73 76
74 @pyqtSlot(int) 77 @pyqtSlot(int)
75 def on_windowComboBox_activated(self, index): 78 def on_windowComboBox_activated(self, index):
76 """ 79 """

eric ide

mercurial