E-book viewer: Ensure that current position is always visible

This commit is contained in:
Kovid Goyal 2010-02-12 13:53:29 -07:00
parent d5b4f4c36f
commit 7e78d7bc8e

View File

@ -184,6 +184,7 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
self.pos.setToolTip(_('Position in book')) self.pos.setToolTip(_('Position in book'))
self.pos.setSuffix('/'+_('Unknown')+' ') self.pos.setSuffix('/'+_('Unknown')+' ')
self.pos.setMinimum(1.) self.pos.setMinimum(1.)
self.pos.setMinimumWidth(150)
self.tool_bar2.insertWidget(self.action_find_next, self.pos) self.tool_bar2.insertWidget(self.action_find_next, self.pos)
self.reference = HelpfulLineEdit() self.reference = HelpfulLineEdit()
self.reference.setValidator(QRegExpValidator(QRegExp(r'\d+\.\d+'), self.reference)) self.reference.setValidator(QRegExpValidator(QRegExp(r'\d+\.\d+'), self.reference))