mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-12 09:33:37 +02:00
2021-08-04 Fred Gleason <fredg@paravelsystems.com>
* Modified rdairplay(1) to use the standard date/time formatting strings. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// The wall clock widget for Rivendell
|
||||
//
|
||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -32,18 +32,11 @@ class WallClock : public RDPushButton
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
void setDateDisplay(bool state);
|
||||
void setTimeMode(RDAirPlayConf::TimeMode mode);
|
||||
void setCheckSyncEnabled(bool);
|
||||
|
||||
private slots:
|
||||
void clickedData();
|
||||
|
||||
public slots:
|
||||
void tickClock();
|
||||
|
||||
signals:
|
||||
void timeModeChanged(RDAirPlayConf::TimeMode);
|
||||
|
||||
protected:
|
||||
void flashButton(bool state);
|
||||
void keyPressEvent(QKeyEvent *e);
|
||||
@@ -53,14 +46,10 @@ class WallClock : public RDPushButton
|
||||
QTime previous_time,current_time;
|
||||
QDate previous_date,current_date;
|
||||
QString time_string;
|
||||
RDAirPlayConf::TimeMode time_mode;
|
||||
RDAirPlayConf::TimeMode previous_time_mode;
|
||||
bool show_date;
|
||||
QFont time_font;
|
||||
QFont label_font;
|
||||
QFontMetrics *label_metrics;
|
||||
bool check_sync;
|
||||
int time_offset;
|
||||
bool flash_state;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user