mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
emit button
git-svn-id: http://svn.osgeo.org/qgis/trunk@2909 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
268208b5c3
commit
bb64c97aa0
@ -1536,6 +1536,7 @@ void QgsMapCanvas::mouseReleaseEvent(QMouseEvent * e)
|
||||
QgsPoint idPoint = mCanvasProperties->coordXForm->
|
||||
toMapCoordinates(e->x(), e->y());
|
||||
emit xyClickCoordinates(idPoint);
|
||||
emit xyClickCoordinates(idPoint,e->button());
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -286,6 +286,7 @@ signals:
|
||||
void xyCoordinates(QgsPoint & p);
|
||||
/** emits mouse position when the canvas is clicked */
|
||||
void xyClickCoordinates(QgsPoint &p);
|
||||
void xyClickCoordinates(QgsPoint &p, Qt::ButtonState button);
|
||||
|
||||
//! Emitted when the scale of the map changes
|
||||
void scaleChanged(QString);
|
||||
|
Loading…
x
Reference in New Issue
Block a user