E-book viewer: SHow format of current book in the title bar. Fixes #7974 (Viewer - more info in title bar)

This commit is contained in:
Kovid Goyal 2010-12-20 11:15:10 -07:00
parent 8ea848312c
commit f4b7d64708

View File

@ -650,7 +650,8 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
self.action_table_of_contents.setDisabled(not self.iterator.toc)
self.current_book_has_toc = bool(self.iterator.toc)
self.current_title = title
self.setWindowTitle(self.base_window_title+' - '+title)
self.setWindowTitle(self.base_window_title+' - '+title +
' [%s]'%os.path.splitext(pathtoebook)[1][1:].upper())
self.pos.setMaximum(sum(self.iterator.pages))
self.pos.setSuffix(' / %d'%sum(self.iterator.pages))
self.vertical_scrollbar.setMinimum(100)