digiKam
detbyclockphotobutton.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of the digikam project
4  * https://www.digikam.org
5  *
6  * Date : 2017-01-01
7  * Description : button for choosing time difference photo which accepts drag & drop
8  *
9  * Copyright (C) 2017 by Markus Leuthold <kusi at forum dot titlis dot org>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_DET_BY_CLOCK_PHOTO_BUTTON_H
24 #define DIGIKAM_DET_BY_CLOCK_PHOTO_BUTTON_H
25 
26 // Qt includes
27 
28 #include <QPushButton>
29 #include <QDragEnterEvent>
30 
31 namespace Digikam
32 {
33 
34 class DetByClockPhotoButton : public QPushButton
35 {
36  Q_OBJECT
37 
38 public:
39 
40  explicit DetByClockPhotoButton(const QString& text);
41 
42  void dragEnterEvent(QDragEnterEvent* event) override;
43  void dragMoveEvent(QDragMoveEvent* event) override;
44  void dropEvent(QDropEvent* event) override;
45 
46 Q_SIGNALS:
47 
48  void signalClockPhotoDropped(const QUrl&);
49 
50 private:
51 
52  // Disable
53  DetByClockPhotoButton(QWidget*);
54 };
55 
56 } // namespace Digikam
57 
58 #endif // DIGIKAM_DET_BY_CLOCK_PHOTO_BUTTON_H
Definition: detbyclockphotobutton.h:35
void dragEnterEvent(QDragEnterEvent *event) override
Definition: detbyclockphotobutton.cpp:42
void signalClockPhotoDropped(const QUrl &)
DetByClockPhotoButton(const QString &text)
Definition: detbyclockphotobutton.cpp:36
void dropEvent(QDropEvent *event) override
Definition: detbyclockphotobutton.cpp:52
void dragMoveEvent(QDragMoveEvent *event) override
Definition: detbyclockphotobutton.cpp:47
Definition: datefolderview.cpp:43