14 from E5Gui import E5FileDialog |
14 from E5Gui import E5FileDialog |
15 |
15 |
16 from .Ui_BookmarkedFilesDialog import Ui_BookmarkedFilesDialog |
16 from .Ui_BookmarkedFilesDialog import Ui_BookmarkedFilesDialog |
17 |
17 |
18 import Utilities |
18 import Utilities |
|
19 import UI.PixmapCache |
19 |
20 |
20 |
21 |
21 class BookmarkedFilesDialog(QDialog, Ui_BookmarkedFilesDialog): |
22 class BookmarkedFilesDialog(QDialog, Ui_BookmarkedFilesDialog): |
22 """ |
23 """ |
23 Class implementing a configuration dialog for the bookmarked files menu. |
24 Class implementing a configuration dialog for the bookmarked files menu. |
29 @param bookmarks list of bookmarked files (list of strings) |
30 @param bookmarks list of bookmarked files (list of strings) |
30 @param parent parent widget (QWidget) |
31 @param parent parent widget (QWidget) |
31 """ |
32 """ |
32 super().__init__(parent) |
33 super().__init__(parent) |
33 self.setupUi(self) |
34 self.setupUi(self) |
|
35 |
|
36 self.fileButton.setIcon(UI.PixmapCache.getIcon("open.png")) |
34 |
37 |
35 self.fileCompleter = E5FileCompleter(self.fileEdit) |
38 self.fileCompleter = E5FileCompleter(self.fileEdit) |
36 |
39 |
37 self.bookmarks = bookmarks[:] |
40 self.bookmarks = bookmarks[:] |
38 for bookmark in self.bookmarks: |
41 for bookmark in self.bookmarks: |