def __init__(self, parent=None): QWidget.__init__(self, parent) h = QHBoxLayout(self) h.setContentsMargins(0, 0, 0, 0) self.browser = nd = Details(self) h.addWidget(nd) self.current_notes = '' self.edit_button = eb = QToolButton(self) eb.setIcon(QIcon(I('modified.png'))) eb.setToolTip(_('Edit the notes for this highlight')) h.addWidget(eb) eb.clicked.connect(self.edit_notes)
def __init__(self, parent=None): Details.__init__(self, parent) self.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Maximum) self.anchorClicked.connect(self.edit_notes) self.current_notes = ''