blob: f013713b593477c98b8caef71211c52cb03feab9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef AUTOMATICTHEME_H
#define AUTOMATICTHEME_H
#include <QDebug>
#include <QGeoPositionInfoSource>
#include <QMessageBox>
#include <QTimeZone>
#include <QWidget>
#include "settingsmanager.h"
namespace Ui {
class AutomaticTheme;
}
class AutomaticTheme : public QWidget {
Q_OBJECT
public:
explicit AutomaticTheme(QWidget *parent = nullptr);
~AutomaticTheme();
private slots:
void on_refresh_clicked();
void on_save_clicked();
void on_cancel_clicked();
void on_sunrise_timeChanged(const QTime &time);
void on_sunset_timeChanged(const QTime &time);
private:
Ui::AutomaticTheme *ui;
QGeoPositionInfoSource *m_gPosInfoSrc;
QDateTime m_sunrise, m_sunset;
double m_hourOffset = 0.0;
double m_longitude = 0.0;
double m_latitube = 0.0;
};
#endif // AUTOMATICTHEME_H
|