Differences From Artifact [07b560bcd3]:
- File common/helpers.h — part of check-in [3ece549448] at 2017-04-15 17:18:52 on branch trunk — Make toOF/toQt more powerful and complete QtWidget (user: js, size: 2049) [annotate] [blame] [check-ins using]
- File
src/common/helpers.h
— part of check-in
[baf52ea3b1]
at
2017-04-17 23:25:45
on branch trunk
— Add a proper build system
Also lowers the minimum required Qt version to 5.5. (user: js, size: 2049) [annotate] [blame] [check-ins using]
To Artifact [a7449889b6]:
- File src/common/helpers.h — part of check-in [6c336e34d7] at 2017-05-14 01:07:21 on branch trunk — Handle NULL / nil in toOF() / toQt() (user: js, size: 2070) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
37 38 39 40 41 42 43 | static OF_INLINE of_point_t toOF(const QPoint &qPoint) { return of_point(qPoint.x(), qPoint.y()); } static OF_INLINE QPoint | | | | | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | static OF_INLINE of_point_t toOF(const QPoint &qPoint) { return of_point(qPoint.x(), qPoint.y()); } static OF_INLINE QPoint toQt(const of_point_t &point) { return QPoint(point.x, point.y); } static OF_INLINE of_dimension_t toOF(const QSize &qSize) { return of_dimension(qSize.width(), qSize.height()); } static OF_INLINE QSize toQt(const of_dimension_t &dimension) { return QSize(dimension.width, dimension.height); } static OF_INLINE of_rectangle_t toOF(const QRect &qRect) { return of_rectangle(qRect.x(), qRect.y(), qRect.width(), qRect.height()); } static OF_INLINE QRect toQt(const of_rectangle_t &rectangle) { return QRect(rectangle.origin.x, rectangle.origin.y, rectangle.size.width, rectangle.size.height); } } |