Changeset View
Changeset View
Standalone View
Standalone View
colorcorrection/suncalc.h
Show All 32 Lines | |||||
33 | /** | 33 | /** | ||
34 | * Calculates for a given location and date two of the | 34 | * Calculates for a given location and date two of the | ||
35 | * following sun timings in their temporal order: | 35 | * following sun timings in their temporal order: | ||
36 | * - Nautical dawn and sunrise for the morning | 36 | * - Nautical dawn and sunrise for the morning | ||
37 | * - Sunset and nautical dusk for the evening | 37 | * - Sunset and nautical dusk for the evening | ||
38 | * @since 5.12 | 38 | * @since 5.12 | ||
39 | */ | 39 | */ | ||
40 | 40 | | |||
41 | QPair<QTime, QTime> calculateSunTimings(QDate prompt, double latitude, double longitude, bool morning); | 41 | QPair<QDateTime, QDateTime> calculateSunTimings(const QDateTime &dateTime, double latitude, double longitude, bool morning); | ||
42 | 42 | | |||
43 | 43 | | |||
44 | } | 44 | } | ||
45 | } | 45 | } | ||
46 | 46 | | |||
47 | #endif // KWIN_SUNCALCULATOR_H | 47 | #endif // KWIN_SUNCALCULATOR_H |