Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
31
qt/qt_common/helpers.hpp
Normal file
31
qt/qt_common/helpers.hpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
|
||||
#include "platform/location.hpp"
|
||||
|
||||
#include <QtGui/QMouseEvent>
|
||||
|
||||
namespace qt::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(QKeySequence const & key, char const * slot) : m_key(key), m_slot(slot) {}
|
||||
|
||||
QKeySequence m_key = 0;
|
||||
char const * m_slot = nullptr;
|
||||
};
|
||||
|
||||
location::GpsInfo MakeGpsInfo(m2::PointD const & point);
|
||||
|
||||
void SetDefaultSurfaceFormat(QString const & platformName);
|
||||
} // namespace qt::common
|
||||
Loading…
Add table
Add a link
Reference in a new issue