hydrogen
1.2.6
MouseEvent.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 "
MouseEvent.h
"
27
28
MouseEvent::MouseEvent
( QMouseEvent* pEv ) :
29
#ifdef H2CORE_HAVE_QT6
30
QMouseEvent( pEv->type(), pEv->
position
(), pEv->
globalPosition
(),
31
pEv->button(), pEv->buttons(), pEv->modifiers() ) {
32
#else
33
QMouseEvent( pEv->type(), pEv->pos(), pEv->globalPos(), pEv->button(),
34
pEv->buttons(), pEv->modifiers() ) {
35
#endif
36
};
37
38
MouseEvent::~MouseEvent
() {
39
}
40
41
QPointF
MouseEvent::globalPosition
()
const
{
42
#ifdef H2CORE_HAVE_QT6
43
return
QMouseEvent::globalPosition();
44
#else
45
return
QMouseEvent::globalPos();
46
#endif
47
}
48
49
QPointF
MouseEvent::position
()
const
{
50
#ifdef H2CORE_HAVE_QT6
51
return
QMouseEvent::position();
52
#else
53
return
QMouseEvent::pos();
54
#endif
55
}
MouseEvent.h
MouseEvent::MouseEvent
MouseEvent(QMouseEvent *)
Definition
MouseEvent.cpp:28
MouseEvent::position
QPointF position() const
Definition
MouseEvent.cpp:49
MouseEvent::~MouseEvent
~MouseEvent()
Definition
MouseEvent.cpp:38
MouseEvent::globalPosition
QPointF globalPosition() const
Definition
MouseEvent.cpp:41
src
gui
src
Compatibility
MouseEvent.cpp
Generated by
1.13.2