44 |
44 |
45 # set initial values |
45 # set initial values |
46 self.iconSizeComboBox.setCurrentIndex( |
46 self.iconSizeComboBox.setCurrentIndex( |
47 self.iconSizeComboBox.findData(Preferences.getIcons("IconSize")) |
47 self.iconSizeComboBox.findData(Preferences.getIcons("IconSize")) |
48 ) |
48 ) |
|
49 self.vectorIconsCheckBox.setChecked(Preferences.getIcons("PreferVectorIcons")) |
49 |
50 |
50 defaultIconsPath = Preferences.getIcons("DefaultIconsPath") |
51 defaultIconsPath = Preferences.getIcons("DefaultIconsPath") |
51 if defaultIconsPath == "automatic": |
52 if defaultIconsPath == "automatic": |
52 self.defaultAutomaticButton.setChecked(True) |
53 self.defaultAutomaticButton.setChecked(True) |
53 elif defaultIconsPath == "breeze-light": |
54 elif defaultIconsPath == "breeze-light": |
66 def save(self): |
67 def save(self): |
67 """ |
68 """ |
68 Public slot to save the Icons configuration. |
69 Public slot to save the Icons configuration. |
69 """ |
70 """ |
70 Preferences.setIcons("IconSize", self.iconSizeComboBox.currentData()) |
71 Preferences.setIcons("IconSize", self.iconSizeComboBox.currentData()) |
|
72 Preferences.setIcons("PreferVectorIcons", self.vectorIconsCheckBox.isChecked()) |
71 |
73 |
72 Preferences.setIcons("DefaultIconsPath", self.__getSelectedDefaultIconsPath()) |
74 Preferences.setIcons("DefaultIconsPath", self.__getSelectedDefaultIconsPath()) |
73 |
75 |
74 dirList = [] |
76 dirList = [] |
75 for i in range(self.iconDirectoryList.count()): |
77 for i in range(self.iconDirectoryList.count()): |