Skip to content

Commit

Permalink
Added cursor tips for composer maps and images.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8442 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
StevenB authored and StevenB committed May 15, 2008
1 parent 6401a8e commit f59b118
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -24,6 +24,7 @@
#include "qgsproject.h"
#include "qgsmessageviewer.h"
#include "qgscontexthelp.h"
#include "qgscursors.h"

#include <QDesktopWidget>
#include <QFileDialog>
Expand Down Expand Up @@ -858,6 +859,7 @@ void QgsComposer::on_mActionAddNewMap_activated(void)
mComposition->setTool ( QgsComposition::AddMap );
setToolActionsOff();
mActionAddNewMap->setOn ( true );
mView->setCursor(QCursor(cross_hair_cursor));
}

void QgsComposer::on_mActionAddNewVectLegend_activated(void)
Expand Down Expand Up @@ -886,6 +888,7 @@ void QgsComposer::on_mActionAddImage_activated(void)
mComposition->setTool ( QgsComposition::AddPicture );
setToolActionsOff();
mActionAddImage->setOn ( true );
mView->setCursor(QCursor(cross_hair_cursor));
}

void QgsComposer::moveEvent ( QMoveEvent *e ) { saveWindowState(); }
Expand Down
3 changes: 2 additions & 1 deletion src/app/composer/qgscomposition.cpp
Expand Up @@ -296,7 +296,6 @@ void QgsComposition::mousePressEvent(QMouseEvent* e)
mRectangleItem->setBrush( Qt::NoBrush );
mRectangleItem->setPen( QPen(QColor(0,0,0), 0) );
mRectangleItem->setZValue(100);
//mRectangleItem->setActive(false);
mRectangleItem->show();
mToolStep = 1;
}
Expand Down Expand Up @@ -496,6 +495,7 @@ void QgsComposition::mouseReleaseEvent(QMouseEvent* e)
mToolStep = 0;
}
mCanvas->update();
mView->unsetCursor();
}
break;

Expand Down Expand Up @@ -525,6 +525,7 @@ void QgsComposition::mouseReleaseEvent(QMouseEvent* e)
} else {
mToolStep = 0;
}
mView->unsetCursor();
}
break;

Expand Down

0 comments on commit f59b118

Please sign in to comment.