hydrogen
1.2.6
DropEvent.cpp
Go to the documentation of this file.
1
/*
2
* Hydrogen
3
* Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4
* Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5
*
6
* http://www.hydrogen-music.org
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY, without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
*
22
*/
23
24
#include <core/config.h>
25
26
#include "
DropEvent.h
"
27
28
DropEvent::DropEvent
( QDropEvent* pEv ) :
29
#ifdef H2CORE_HAVE_QT6
30
QDropEvent( pEv->
position
(), pEv->possibleActions(), pEv->mimeData(),
31
pEv->buttons(), pEv->modifiers() ) {
32
#else
33
QDropEvent( pEv->pos(), pEv->possibleActions(), pEv->mimeData(),
34
pEv->mouseButtons(), pEv->keyboardModifiers() ) {
35
#endif
36
};
37
38
DropEvent::~DropEvent
() {
39
}
40
41
QPointF
DropEvent::position
()
const
{
42
#ifdef H2CORE_HAVE_QT6
43
return
QDropEvent::position();
44
#else
45
return
QDropEvent::pos();
46
#endif
47
}
DropEvent.h
DropEvent::~DropEvent
~DropEvent()
Definition
DropEvent.cpp:38
DropEvent::position
QPointF position() const
Definition
DropEvent.cpp:41
DropEvent::DropEvent
DropEvent(QDropEvent *)
Definition
DropEvent.cpp:28
src
gui
src
Compatibility
DropEvent.cpp
Generated by
1.13.2