Files
comaps/qt/qt_common/helpers.hpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

32 lines
775 B
C++

#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