mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix #1063209 (24h-clock in full-screen ebook-reader [Enhancement])
This commit is contained in:
parent
d2419b8b1b
commit
4e5f5d2994
1 changed files with 3 additions and 2 deletions
|
|
@ -522,7 +522,8 @@ def show_full_screen_label(self):
|
|||
|
||||
def show_clock(self):
|
||||
self.clock_label.setVisible(True)
|
||||
self.clock_label.setText('99:99 AA')
|
||||
self.clock_label.setText(QTime(22, 33,
|
||||
33).toString(Qt.SystemLocaleShortDate))
|
||||
self.clock_timer.start(1000)
|
||||
self.clock_label.setStyleSheet(self.info_label_style%(
|
||||
'rgba(0, 0, 0, 0)', self.view.document.colors()[1]))
|
||||
|
|
@ -544,7 +545,7 @@ def show_pos_label(self):
|
|||
self.update_pos_label()
|
||||
|
||||
def update_clock(self):
|
||||
self.clock_label.setText(QTime.currentTime().toString('h:mm a'))
|
||||
self.clock_label.setText(QTime.currentTime().toString(Qt.SystemLocaleShortDate))
|
||||
|
||||
def update_pos_label(self, *args):
|
||||
if self.pos_label.isVisible():
|
||||
|
|
|
|||
Loading…
Reference in a new issue