234 """ |
234 """ |
235 Private slot to add a new bookmark. |
235 Private slot to add a new bookmark. |
236 """ |
236 """ |
237 from .AddBookmarkDialog import AddBookmarkDialog |
237 from .AddBookmarkDialog import AddBookmarkDialog |
238 |
238 |
239 dlg = AddBookmarkDialog() |
239 dlg = AddBookmarkDialog(parent=self) |
240 dlg.setCurrentIndex(self.rootIndex()) |
240 dlg.setCurrentIndex(self.rootIndex()) |
241 dlg.exec() |
241 dlg.exec() |
242 |
242 |
243 def __newFolder(self): |
243 def __newFolder(self): |
244 """ |
244 """ |
245 Private slot to add a new bookmarks folder. |
245 Private slot to add a new bookmarks folder. |
246 """ |
246 """ |
247 from .AddBookmarkDialog import AddBookmarkDialog |
247 from .AddBookmarkDialog import AddBookmarkDialog |
248 |
248 |
249 dlg = AddBookmarkDialog() |
249 dlg = AddBookmarkDialog(parent=self) |
250 dlg.setCurrentIndex(self.rootIndex()) |
250 dlg.setCurrentIndex(self.rootIndex()) |
251 dlg.setFolder(True) |
251 dlg.setFolder(True) |
252 dlg.exec() |
252 dlg.exec() |
253 |
253 |
254 def _createMenu(self): |
254 def _createMenu(self): |