187 for row in range(self.iconDirectoryList.count()): |
187 for row in range(self.iconDirectoryList.count()): |
188 directories.append(self.iconDirectoryList.item(row).text()) |
188 directories.append(self.iconDirectoryList.item(row).text()) |
189 if directories: |
189 if directories: |
190 from .IconsPreviewDialog import IconsPreviewDialog |
190 from .IconsPreviewDialog import IconsPreviewDialog |
191 dlg = IconsPreviewDialog(directories, self) |
191 dlg = IconsPreviewDialog(directories, self) |
192 dlg.exec_() |
192 dlg.exec() |
193 |
193 |
194 @pyqtSlot() |
194 @pyqtSlot() |
195 def on_showDefaultIconsButton_clicked(self): |
195 def on_showDefaultIconsButton_clicked(self): |
196 """ |
196 """ |
197 Private slot to display a preview of the selected default icons. |
197 Private slot to display a preview of the selected default icons. |
207 dlg = IconsPreviewDialog([ |
207 dlg = IconsPreviewDialog([ |
208 os.path.join(getConfig('ericIconDir'), defaultIconsPath), |
208 os.path.join(getConfig('ericIconDir'), defaultIconsPath), |
209 os.path.join(getConfig('ericIconDir'), defaultIconsPath, |
209 os.path.join(getConfig('ericIconDir'), defaultIconsPath, |
210 "languages"), |
210 "languages"), |
211 ], self) |
211 ], self) |
212 dlg.exec_() |
212 dlg.exec() |
213 |
213 |
214 |
214 |
215 def create(dlg): |
215 def create(dlg): |
216 """ |
216 """ |
217 Module function to create the configuration page. |
217 Module function to create the configuration page. |