File indexing completed on 2025-04-27 03:58:22
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2015-05-29 0007 * Description : a combobox with time zones. 0008 * 0009 * SPDX-FileCopyrightText: 2015 by Maik Qualmann <metzpinguin at gmail dot com> 0010 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_TIMEZONE_COMBOBOX_H 0017 #define DIGIKAM_TIMEZONE_COMBOBOX_H 0018 0019 // Qt includes 0020 0021 #include <QComboBox> 0022 0023 // Local includes 0024 0025 #include "digikam_export.h" 0026 0027 namespace Digikam 0028 { 0029 0030 class DIGIKAM_EXPORT TimeZoneComboBox : public QComboBox 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit TimeZoneComboBox(QWidget* const parent); 0037 ~TimeZoneComboBox() override; 0038 0039 void setToUTC(); 0040 void setTimeZone(const QString& timeStr); 0041 0042 QString getTimeZone() const; 0043 int timeZoneOffset() const; 0044 }; 0045 0046 } // namespace Digikam 0047 0048 #endif // DIGIKAM_TIMEZONE_COMBOBOX_H