Diffstat (limited to 'noncore/settings/netsystemtime/settime.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/settime.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/settings/netsystemtime/settime.h b/noncore/settings/netsystemtime/settime.h index 778cb9c..3c3a162 100644 --- a/noncore/settings/netsystemtime/settime.h +++ b/noncore/settings/netsystemtime/settime.h | |||
@@ -38,27 +38,31 @@ class SetTime : public QWidget | |||
38 | { | 38 | { |
39 | Q_OBJECT | 39 | Q_OBJECT |
40 | public: | 40 | public: |
41 | SetTime( QWidget *parent=0, const char *name=0 ); | 41 | SetTime( QWidget *parent=0, const char *name=0 ); |
42 | 42 | ||
43 | QTime time() const; | 43 | QTime time() const; |
44 | void setTime( QDateTime ); | ||
44 | 45 | ||
45 | public slots: | 46 | public slots: |
46 | void slotTzChange( const QString& tz ); | 47 | void slotTzChange( const QString& tz ); |
47 | void show12hourTime( int ); | 48 | void show12hourTime( int ); |
48 | 49 | ||
49 | protected slots: | 50 | protected slots: |
51 | void slotClockTick(); | ||
50 | void hourChanged( int value ); | 52 | void hourChanged( int value ); |
51 | void minuteChanged( int value ); | 53 | void minuteChanged( int value ); |
52 | 54 | ||
53 | void checkedPM( int ); | 55 | void checkedPM( int ); |
54 | 56 | ||
55 | protected: | 57 | protected: |
56 | int hour; | 58 | int hour; |
57 | int minute; | 59 | int minute; |
58 | bool use12hourTime; | 60 | bool use12hourTime; |
61 | QDateTime _time; | ||
62 | QTimer *clock; | ||
59 | QComboBox *ampm; | 63 | QComboBox *ampm; |
60 | QSpinBox *sbHour; | 64 | QSpinBox *sbHour; |
61 | QSpinBox *sbMin; | 65 | QSpinBox *sbMin; |
62 | }; | 66 | }; |
63 | 67 | ||
64 | class DateButton; | 68 | class DateButton; |
@@ -71,13 +75,13 @@ public: | |||
71 | ~SetDateTime(); | 75 | ~SetDateTime(); |
72 | 76 | ||
73 | protected slots: | 77 | protected slots: |
74 | void commitTime(); | 78 | void commitTime(); |
75 | void tzChange( const QString &tz ); | 79 | void tzChange( const QString &tz ); |
76 | void formatChanged(int); | 80 | void formatChanged(int); |
77 | void updateSystem(int i=0); | 81 | void updateSystem(); |
78 | 82 | ||
79 | protected: | 83 | protected: |
80 | void setTime(QDateTime dt); | 84 | void setTime(QDateTime dt); |
81 | void writeSettings(); | 85 | void writeSettings(); |
82 | 86 | ||
83 | SetTime *timeButton; | 87 | SetTime *timeButton; |
@@ -85,13 +89,13 @@ protected: | |||
85 | TimeZoneSelector *tz; | 89 | TimeZoneSelector *tz; |
86 | QComboBox *weekStartCombo; | 90 | QComboBox *weekStartCombo; |
87 | QComboBox *ampmCombo; | 91 | QComboBox *ampmCombo; |
88 | QComboBox *dateFormatCombo; | 92 | QComboBox *dateFormatCombo; |
89 | QComboBox *clockAppletCombo; | 93 | QComboBox *clockAppletCombo; |
90 | QPushButton *ButtonSetTime; | 94 | QPushButton *ButtonSetTime; |
91 | QLabel *TextLabelMainPredTime; | 95 | // QLabel *TextLabelMainPredTime; |
92 | 96 | ||
93 | DateFormat date_formats[4]; | 97 | DateFormat date_formats[4]; |
94 | }; | 98 | }; |
95 | 99 | ||
96 | 100 | ||
97 | #endif | 101 | #endif |