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
Digikam::DetByClockPhotoButton
Definition:
detbyclockphotobutton.h:35
Digikam::DetByClockPhotoButton::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event) override
Definition:
detbyclockphotobutton.cpp:42
Digikam::DetByClockPhotoButton::signalClockPhotoDropped
void signalClockPhotoDropped(const QUrl &)
Digikam::DetByClockPhotoButton::DetByClockPhotoButton
DetByClockPhotoButton(const QString &text)
Definition:
detbyclockphotobutton.cpp:36
Digikam::DetByClockPhotoButton::dropEvent
void dropEvent(QDropEvent *event) override
Definition:
detbyclockphotobutton.cpp:52
Digikam::DetByClockPhotoButton::dragMoveEvent
void dragMoveEvent(QDragMoveEvent *event) override
Definition:
detbyclockphotobutton.cpp:47
Digikam
Definition:
datefolderview.cpp:43
core
libs
timeadjust
detbyclockphotobutton.h
Generated by
1.9.1