[QGIS Commit] r8575 -
branches/advanced_printing_branch/src/app/composer
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Jun 1 08:57:49 EDT 2008
Author: mhugent
Date: 2008-06-01 08:57:49 -0400 (Sun, 01 Jun 2008)
New Revision: 8575
Modified:
branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp
branches/advanced_printing_branch/src/app/composer/qgscomposerview.cpp
Log:
Fix for redrawing problems of composer map
Modified: branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp 2008-06-01 12:20:01 UTC (rev 8574)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp 2008-06-01 12:57:49 UTC (rev 8575)
@@ -97,7 +97,6 @@
qDebug( "unable to connect to aboutToQuit" );
}
restoreWindowState();
-
selectItem(); // Set selection tool
}
Modified: branches/advanced_printing_branch/src/app/composer/qgscomposerview.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerview.cpp 2008-06-01 12:20:01 UTC (rev 8574)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerview.cpp 2008-06-01 12:57:49 UTC (rev 8575)
@@ -33,21 +33,12 @@
//,name,f|Qt::WNoAutoErase|Qt::WResizeNoErase|Qt::WStaticContents
{
mComposer = composer;
-
- // TODO: nothing doe work -> necessary to call setFocus ()
- setEnabled ( true );
- setFocusPolicy ( Qt::StrongFocus );
- setFocusProxy ( 0 );
-
setResizeAnchor ( QGraphicsView::AnchorViewCenter );
setMouseTracking(true);
- setInteractive(true);
}
void QgsComposerView::mousePressEvent(QMouseEvent* e)
{
- // TODO: find how to get focus without setFocus
- setFocus ();
mComposer->composition()->mousePressEvent(e);
if(mComposer->composition()->tool() == QgsComposition::Select)
{
@@ -66,6 +57,7 @@
void QgsComposerView::mouseMoveEvent(QMouseEvent* e)
{
+ qWarning("QgsComposerView::mouseMoveEvent");
mComposer->composition()->mouseMoveEvent(e);
if(mComposer->composition()->tool() == QgsComposition::Select)
{
More information about the QGIS-commit
mailing list