mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 10:10:05 +00:00
Handle mouse button press of alert
This commit is contained in:
parent
2ab8f3a77a
commit
efb03ab9cc
4 changed files with 67 additions and 43 deletions
|
|
@ -19,7 +19,7 @@ struct GeoLineDrawItem;
|
|||
class GeoLines : public DrawItem
|
||||
{
|
||||
public:
|
||||
typedef std::function<void(std::shared_ptr<const GeoLineDrawItem>&,
|
||||
typedef std::function<void(std::shared_ptr<GeoLineDrawItem>&,
|
||||
const QPointF&)>
|
||||
HoverCallback;
|
||||
|
||||
|
|
@ -159,6 +159,16 @@ public:
|
|||
*/
|
||||
void FinishLines();
|
||||
|
||||
/**
|
||||
* Registers an event handler for a geo line.
|
||||
*
|
||||
* @param [in] di Geo line draw item
|
||||
* @param [in] eventHandler Event handler function
|
||||
*/
|
||||
static void
|
||||
RegisterEventHandler(const std::shared_ptr<GeoLineDrawItem>& di,
|
||||
const std::function<void(QEvent*)>& eventHandler);
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::unique_ptr<Impl> p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue