digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2017 by Markus Leuthold <kusi at forum dot titlis dot org>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QPushButton>
20#include <QDragEnterEvent>
21
22namespace Digikam
23{
24
25class DetByClockPhotoButton : public QPushButton
26{
27 Q_OBJECT
28
29public:
30
31 explicit DetByClockPhotoButton(const QString& text);
32
33 void dragEnterEvent(QDragEnterEvent* event) override;
34 void dragMoveEvent(QDragMoveEvent* event) override;
35 void dropEvent(QDropEvent* event) override;
36
37Q_SIGNALS:
38
39 void signalClockPhotoDropped(const QUrl&);
40
41private:
42
43 // Disable
44 DetByClockPhotoButton(QWidget*);
45};
46
47} // namespace Digikam
Definition detbyclockphotobutton.h:26
void dragEnterEvent(QDragEnterEvent *event) override
Definition detbyclockphotobutton.cpp:34
void signalClockPhotoDropped(const QUrl &)
void dropEvent(QDropEvent *event) override
Definition detbyclockphotobutton.cpp:44
void dragMoveEvent(QDragMoveEvent *event) override
Definition detbyclockphotobutton.cpp:39
Definition datefolderview.cpp:34