Helpviewer/Bookmarks/BookmarksDialog.py

changeset 7
c679fb30c8f3
parent 0
de9c2efb9d02
child 12
1d8dd9706f46
equal deleted inserted replaced
6:52e8c820d0dd 7:c679fb30c8f3
187 node is None or \ 187 node is None or \
188 node.type() == BookmarkNode.Folder: 188 node.type() == BookmarkNode.Folder:
189 return 189 return
190 if newTab: 190 if newTab:
191 self.emit(SIGNAL("newUrl(const QUrl&, const QString&)"), 191 self.emit(SIGNAL("newUrl(const QUrl&, const QString&)"),
192 idx.sibling(idx.row(), 1).data(BookmarksModel.UrlRole).toUrl(), 192 idx.sibling(idx.row(), 1).data(BookmarksModel.UrlRole),
193 idx.sibling(idx.row(), 0).data(Qt.DisplayRole).toString()) 193 idx.sibling(idx.row(), 0).data(Qt.DisplayRole))
194 else: 194 else:
195 self.emit(SIGNAL("openUrl(const QUrl&, const QString&)"), 195 self.emit(SIGNAL("openUrl(const QUrl&, const QString&)"),
196 idx.sibling(idx.row(), 1).data(BookmarksModel.UrlRole).toUrl(), 196 idx.sibling(idx.row(), 1).data(BookmarksModel.UrlRole),
197 idx.sibling(idx.row(), 0).data(Qt.DisplayRole).toString()) 197 idx.sibling(idx.row(), 0).data(Qt.DisplayRole))
198 198
199 def __editName(self): 199 def __editName(self):
200 """ 200 """
201 Private slot to edit the name part of a bookmark. 201 Private slot to edit the name part of a bookmark.
202 """ 202 """

eric ide

mercurial