[Qgis-developer] Patch for qgsvertexmarker

Tim Sutton tim at linfiniti.com
Sun Feb 11 09:49:13 EST 2007


Hi

Your patch is committed. Many thanks. Please note that we prefer
people to use trac to submit patches. Url is:

https://svn.qgis.org/trac

If you would like to be added to CONTRIBUTORS text file please supply
your full name & preferred email address.

Best Regards

Tim

2007/2/9, sploid <sploid at yandex.ru>:
> QRectF QGraphicsItem::boundingRect () const
>
> This pure virtual function defines the outer bounds of the item as a
> rectangle; all painting must be restricted to inside an item's bounding
> rect. QGraphicsView uses this to determine whether the item requires
> redrawing.
>
> Constructor QRectF
> QRectF ( qreal x, qreal y, qreal WIDTH, qreal HEIGHT )
>
> WIDTH = HEIGHT  = 2.0 * s
>
> > Hi
> >
> > Since no one else has responded I will take a look at your patch. Many
> > thanks for your contribution. In future it could be helpful if you
> > include a small description of what the patch is for, what problem it
> > solves and which branch of QGIS it should be applied against.
> >
> > Many thanks
> >
> > Tim
> >
> > 2007/2/8, sploid <sploid at yandex.ru>:
> >> Index: src/gui/qgsvertexmarker.cpp
> >>
> >> ===================================================================
> >>
> >> --- src/gui/qgsvertexmarker.cpp (revision 6522)
> >>
> >> +++ src/gui/qgsvertexmarker.cpp (working copy)
> >>
> >> @@ -77,8 +77,8 @@
> >>
> >>
> >> QRectF QgsVertexMarker::boundingRect() const
> >>
> >> {
> >>
> >> - qreal s = mIconSize / 2;
> >>
> >> - return QRectF(-s,-s,s,s);
> >>
> >> + qreal s = qreal(mIconSize + QPen(QColor(255,0,0)).width()) / 2.0;
> >>
> >> + return QRectF(-s,-s,2.0*s,2.0*s);
> >>
> >> }
> >>
> >>
> >> void QgsVertexMarker::updatePosition()
> >>
> >>
> >> _______________________________________________
> >> Qgis-developer mailing list
> >> Qgis-developer at lists.qgis.org
> >> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
> >>
> >
> >
> > --
> > --
> > Tim Sutton
> >
> > Visit http://qgis.org for a great Open Source GIS
> > Home Page: http://linfiniti.com
> > Skype: timlinux
> > MSN: tim_bdworld at msn.com
> > Yahoo: tim_bdworld at yahoo.com
> > Jabber: timlinux
> > Irc: timlinux on #qgis at freenode.net
> >
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>


-- 
-- 
Tim Sutton

Visit http://qgis.org for a great Open Source GIS
Home Page: http://linfiniti.com
Skype: timlinux
MSN: tim_bdworld at msn.com
Yahoo: tim_bdworld at yahoo.com
Jabber: timlinux
Irc: timlinux on #qgis at freenode.net



More information about the Qgis-developer mailing list