digiKam
ddatetimeedit.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 : 2005-04-21
7  * Description : a widget to edit time stamp.
8  *
9  * Copyright (C) 2005 by Tom Albers <tomalbers at kde dot nl>
10  * Copyright (C) 2011-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)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DDATE_TIME_EDIT_H
26 #define DIGIKAM_DDATE_TIME_EDIT_H
27 
28 // Qt includes
29 
30 #include <QDateTime>
31 
32 // Local includes
33 
34 #include "dlayoutbox.h"
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
45 class DIGIKAM_GUI_EXPORT DDateTimeEdit : public DHBox
46 {
47  Q_OBJECT
48 
49 public:
50 
56  explicit DDateTimeEdit(QWidget* const parent, const QString& name);
57 
61  ~DDateTimeEdit() override;
62 
67  QDateTime dateTime() const;
68 
72  void setDateTime(const QDateTime& dateTime);
73 
74 Q_SIGNALS:
75 
80  void dateTimeChanged(const QDateTime& dateTime);
81 
82 private Q_SLOTS:
83 
84  void slotDateTimeChanged();
85 
86 private:
87 
88  class Private;
89  Private* const d;
90 };
91 
92 } // namespace Digikam
93 
94 #endif // DIGIKAM_DDATE_TIME_EDIT_H
Definition: ddatetimeedit.h:46
void dateTimeChanged(const QDateTime &dateTime)
Definition: dlayoutbox.h:45
Definition: datefolderview.cpp:43