diff options
author | 2023-09-19 02:01:41 +0600 | |
---|---|---|
committer | 2023-09-19 02:01:41 +0600 | |
commit | 36d10b4b6359b5cf3ff0e37f2330dfaf91cbf530 (patch) | |
tree | cad68505e3dcff4e8d37c5a6a052240d8a935efb /src/automatictheme.h | |
parent | 35d85d38d02d97e1c63729bb3301f46bb6f96728 (diff) | |
parent | 906ca7eb436dc9944d43f5b7f6ae7b44afc2a3e7 (diff) | |
download | whatsie-36d10b4b6359b5cf3ff0e37f2330dfaf91cbf530.tar.gz whatsie-36d10b4b6359b5cf3ff0e37f2330dfaf91cbf530.zip |
Update upstream source from tag 'upstream/4.14.1'
Update to upstream version '4.14.1'
with Debian dir 267b96a979689ac47077c72b576cf79da29f8ff2
Diffstat (limited to 'src/automatictheme.h')
-rw-r--r-- | src/automatictheme.h | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/src/automatictheme.h b/src/automatictheme.h index 55904e5..f013713 100644 --- a/src/automatictheme.h +++ b/src/automatictheme.h @@ -1,47 +1,45 @@ #ifndef AUTOMATICTHEME_H #define AUTOMATICTHEME_H -#include <QWidget> -#include <QGeoPositionInfoSource> #include <QDebug> +#include <QGeoPositionInfoSource> +#include <QMessageBox> #include <QTimeZone> -#include <QSettings> +#include <QWidget> + +#include "settingsmanager.h" namespace Ui { class AutomaticTheme; } -class AutomaticTheme : public QWidget -{ - Q_OBJECT +class AutomaticTheme : public QWidget { + Q_OBJECT public: - explicit AutomaticTheme(QWidget *parent = nullptr); - ~AutomaticTheme(); - + explicit AutomaticTheme(QWidget *parent = nullptr); + ~AutomaticTheme(); private slots: - void on_refresh_clicked(); + void on_refresh_clicked(); - void on_save_clicked(); + void on_save_clicked(); - void on_cancel_clicked(); + void on_cancel_clicked(); - void on_sunrise_timeChanged(const QTime &time); + void on_sunrise_timeChanged(const QTime &time); - void on_sunset_timeChanged(const QTime &time); + void on_sunset_timeChanged(const QTime &time); private: - Ui::AutomaticTheme *ui; - - QGeoPositionInfoSource *gPosInfoSrc; - QDateTime sunrise, sunset; + Ui::AutomaticTheme *ui; - double hour_offset = 0.0; - double lon = 0.0; - double lat = 0.0; + QGeoPositionInfoSource *m_gPosInfoSrc; + QDateTime m_sunrise, m_sunset; - QSettings settings; + double m_hourOffset = 0.0; + double m_longitude = 0.0; + double m_latitube = 0.0; }; #endif // AUTOMATICTHEME_H |