Skip to content
Permalink
Browse files
Added cursor tips for composer maps and images.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8442 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
StevenB authored and StevenB committed May 15, 2008
1 parent b2cff74 commit 070879cb08352ff479285f6c44732ea186f1e0d7
Showing with 5 additions and 1 deletion.
  1. +3 −0 src/app/composer/qgscomposer.cpp
  2. +2 −1 src/app/composer/qgscomposition.cpp
@@ -24,6 +24,7 @@
#include "qgsproject.h"
#include "qgsmessageviewer.h"
#include "qgscontexthelp.h"
#include "qgscursors.h"

#include <QDesktopWidget>
#include <QFileDialog>
@@ -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)
@@ -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(); }
@@ -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;
}
@@ -496,6 +495,7 @@ void QgsComposition::mouseReleaseEvent(QMouseEvent* e)
mToolStep = 0;
}
mCanvas->update();
mView->unsetCursor();
}
break;

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

0 comments on commit 070879c

Please sign in to comment.