230 |
230 |
231 @param idx index of the activated item (QModelIndex) |
231 @param idx index of the activated item (QModelIndex) |
232 """ |
232 """ |
233 if self._keyboardModifiers & Qt.ControlModifier: |
233 if self._keyboardModifiers & Qt.ControlModifier: |
234 self.emit(SIGNAL("newUrl(const QUrl&, const QString&)"), |
234 self.emit(SIGNAL("newUrl(const QUrl&, const QString&)"), |
235 idx.data(HistoryModel.UrlRole).toUrl(), |
235 idx.data(HistoryModel.UrlRole), |
236 idx.data(HistoryModel.TitleRole).toString()) |
236 idx.data(HistoryModel.TitleRole)) |
237 else: |
237 else: |
238 self.emit(SIGNAL("openUrl(const QUrl&, const QString&)"), |
238 self.emit(SIGNAL("openUrl(const QUrl&, const QString&)"), |
239 idx.data(HistoryModel.UrlRole).toUrl(), |
239 idx.data(HistoryModel.UrlRole), |
240 idx.data(HistoryModel.TitleRole).toString()) |
240 idx.data(HistoryModel.TitleRole)) |
241 |
241 |
242 def prePopulated(self): |
242 def prePopulated(self): |
243 """ |
243 """ |
244 Public method to add any actions before the tree. |
244 Public method to add any actions before the tree. |
245 |
245 |