Skip to content
Browse files

- fix to enable custom map canvas item positioning

- QAction of map tool now gets unchecked when tool has been deactivated
  even if it's in another action group

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 4, 2006
1 parent a6ad405 commit 868c0d59949f8fdd50868849f8b9b5a8c54e9b03
Showing with 6 additions and 8 deletions.
  1. +2 −6 src/gui/qgsmapcanvasitem.h
  2. +4 −2 src/gui/qgsmaptool.cpp
@@ -57,15 +57,11 @@ class QgsMapCanvasItem : public QObject, public Q3CanvasRectangle

//! transformation from map coordinates to screen coordinates
QPoint toCanvasCoords(const QgsPoint& point);

public slots:

/** called on changed extents or changed item rectangle
* Override this in your subclass if you wish to have custom
* behaviour for when the canvas area of interest is changed */
void updatePosition();
virtual void updatePosition();


@@ -48,13 +48,15 @@ void QgsMapTool::activate()
// make action active
if (mAction)

// set cursor (map tools usually set it in constructor
// set cursor (map tools usually set it in constructor)

void QgsMapTool::deactivate()
if (mAction)

0 comments on commit 868c0d5

Please sign in to comment.
You can’t perform that action at this time.