This commit is contained in:
Kovid Goyal 2019-08-07 16:36:52 +05:30
parent 63cac76d80
commit 34f48e00d2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -64,7 +64,7 @@ class EbookViewer(MainWindow):
self.toc_container = w = QWidget(self) self.toc_container = w = QWidget(self)
w.l = QVBoxLayout(w) w.l = QVBoxLayout(w)
self.toc = TOCView(w) self.toc = TOCView(w)
self.toc.pressed[QModelIndex].connect(self.toc_clicked) self.toc.clicked[QModelIndex].connect(self.toc_clicked)
self.toc.searched.connect(self.toc_searched) self.toc.searched.connect(self.toc_searched)
self.toc_search = TOCSearch(self.toc, parent=w) self.toc_search = TOCSearch(self.toc, parent=w)
w.l.addWidget(self.toc), w.l.addWidget(self.toc_search), w.l.setContentsMargins(0, 0, 0, 0) w.l.addWidget(self.toc), w.l.addWidget(self.toc_search), w.l.setContentsMargins(0, 0, 0, 0)