r21033 by craig -

scribus-commit scribus-commit at lists.scribus.net
Wed Feb 24 18:11:58 UTC 2016


Author: craig
Date: Wed Feb 24 18:11:58 2016
New Revision: 21033

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21033
Log:
Add FPoint constructor from QPointF, from HOST

Modified:
    trunk/Scribus/scribus/fpoint.h

Modified: trunk/Scribus/scribus/fpoint.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21033&path=/trunk/Scribus/scribus/fpoint.h
==============================================================================
--- trunk/Scribus/scribus/fpoint.h	(original)
+++ trunk/Scribus/scribus/fpoint.h	Wed Feb 24 18:11:58 2016
@@ -46,6 +46,7 @@
 	FPoint() : xp(0), yp(0) {};
 	FPoint(double x, double y) : xp(x), yp(y) {};
 	FPoint(const QPoint & p) : xp(p.x()), yp(p.y()) {};
+	FPoint(const QPointF & p) : xp(p.x()), yp(p.y()) {};
 	FPoint(const FPoint & p) : xp(p.xp), yp(p.yp) {};
 	//Creates a transformed point, replaces ScribusView::transformPoint()
 	FPoint(const double x, const double y, const double dx, const double dy, const double rot, const double sx, const double sy, const bool invert=false);




More information about the scribus-commit mailing list