215 return |
215 return |
216 |
216 |
217 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog |
217 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog |
218 dlg = HyperlinkMarkupDialog(True, False) |
218 dlg = HyperlinkMarkupDialog(True, False) |
219 if dlg.exec_() == QDialog.Accepted: |
219 if dlg.exec_() == QDialog.Accepted: |
220 text, target, title = dlg.getData() |
220 text, target, title = dlg.getData() |
221 if not text: |
221 if not text: |
222 text = target |
222 text = target |
223 |
223 |
224 if title: |
224 if title: |
225 link = '<a href="{0}" title="{2}">{1}</a>'.format( |
225 link = '<a href="{0}" title="{2}">{1}</a>'.format( |