blob: b3f6882852b2792b078768f157a9803912e60ba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include "platform/location.hpp"
#include <QtGui/QMouseEvent>
namespace qt
{
namespace common
{
bool IsLeftButton(Qt::MouseButtons buttons);
bool IsLeftButton(QMouseEvent const * const e);
bool IsRightButton(Qt::MouseButtons buttons);
bool IsRightButton(QMouseEvent const * const e);
bool IsCommandModifier(QMouseEvent const * const e);
bool IsShiftModifier(QMouseEvent const * const e);
bool IsAltModifier(QMouseEvent const * const e);
struct Hotkey
{
Hotkey() = default;
Hotkey(int key, char const * slot) : m_key(key), m_slot(slot) {}
int m_key = 0;
char const * m_slot = nullptr;
};
location::GpsInfo MakeGpsInfo(m2::PointD const & point);
} // namespace common
} // namespace qt
|