digiKam
timezonecombobox.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2015-05-29
7  * Description : a combobox with time zones.
8  *
9  * Copyright (C) 2015 by Maik Qualmann <metzpinguin at gmail dot com>
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_TIMEZONE_COMBOBOX_H
25 #define DIGIKAM_TIMEZONE_COMBOBOX_H
26 
27 // Qt includes
28 
29 #include <QComboBox>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT TimeZoneComboBox : public QComboBox
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit TimeZoneComboBox(QWidget* const parent);
45  ~TimeZoneComboBox() override;
46 
47  void setToUTC();
48  void setTimeZone(const QString& timeStr);
49 
50  QString getTimeZone() const;
51  int timeZoneOffset() const;
52 };
53 
54 } // namespace Digikam
55 
56 #endif // DIGIKAM_TIMEZONE_COMBOBOX_H
Definition: timezonecombobox.h:39
Definition: datefolderview.cpp:43