<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I think we should just postpone the extras 'till 5.2, yes.<div><br></div><div>QtWindowsExtras needs a ton more work - Ivan Vizir's big Windows 7 features commit is still not ready and likely won't for a while. I believe he said he is planning a second commit with more of them since thumbnail toolbars were left out of his first one for reasons of time. Like Morten said, QtMacExtras needs a lot more polish too. Unfortunately he and I are the only ones working on it.</div><div><br></div><div>As for the operators, I remember there was a discussion on IRC suggesting we simply declare the methods and operators and forward declare the types necessary in QtCore/QtGui, and implement them in QtWindowsExtras/QtMacExtras. Then the former need not link to any additional libraries.</div><div><br></div><div>My vote is for constructors and conversion operators on (the all caps types are Win32 types):</div><div><br></div><div>QString <=> NSString</div><div>QPoint <=> CGPoint, NSPoint, POINT</div><div>QSize <=> CGSize, NSSize, (there's no `SIZE` afaik)</div><div>QRect <=> CGRect, NSSize, SIZE</div><div>QMargins <=> MARGINS</div><div><br></div><div>Darwin has a lot of image types. UIImage converters are not strictly necessary since UIImage has easy methods to/from CGImageRef since iOS 2.0. However, something like: `<font face="Courier New">inline UIImage* QImageToUIImage(const QImage &image) { return [UIImage imageWithCGImage:QImageToCGImage(image)]; }</font>` would save typing so I think we should add them anyways. Similar story with CIImage (except there's no CIImage -> CGImageRef and can't be from the looks of the API).</div><div><br></div><div>QIcon <=> HICON</div><div>QImage/QPixmap <=> HBITMAP, CGImageRef, NSImage, UIImage, CIImage</div><div>QString <=> CFStringRef, NSString</div><div><br></div><div>Anything else?</div><div><br></div><div>After all this, though, I think we should still implement the constructors and operators in terms of free functions so that the converters are also usable by Qt 4.</div><div><br></div><div>Are there any objections to this? Can we start adding constructors and operators to QtCore and QtGui?</div><div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="font-weight: normal; ">-- </div><div style="font-weight: normal; "><b>Jake Petroules</b></div><div style="font-weight: normal; ">Chief Technology Officer</div><div style="font-weight: normal; ">Petroules Corporation · <a href="http://www.petroules.com">www.petroules.com</a></div><div style="font-weight: normal; ">Email: <a href="mailto:jake.petroules@petroules.com">jake.petroules@petroules.com</a></div></div></span></div></span></div></div></div>
</div>
<br><div><div>On Mar 19, 2013, at 2:52 AM, Sorvig Morten <<a href="mailto:Morten.Sorvig@digia.com">Morten.Sorvig@digia.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br>On Mar 18, 2013, at 5:05 PM, Knoll Lars <<a href="mailto:Lars.Knoll@digia.com">Lars.Knoll@digia.com</a>> wrote:<br><br><blockquote type="cite">On 3/18/13 4:58 PM, "Laszlo Papp" <<a href="mailto:lpapp@kde.org">lpapp@kde.org</a>> wrote:<br><br><blockquote type="cite">On Mon, Mar 18, 2013 at 3:52 PM, Thomas McGuire <<a href="mailto:thomas.mcguire@kdab.com">thomas.mcguire@kdab.com</a>><br>wrote:<br><br>QtSensors needs to be added to qt5.git, but couldn't yet, due to CI<br>failures.<br>See <a href="https://codereview.qt-project.org/#change,48905">https://codereview.qt-project.org/#change,48905</a>.<br><br><br><br>+ QtSerialPort: <a href="https://codereview.qt-project.org/#change,49157">https://codereview.qt-project.org/#change,49157</a><br></blockquote><br>+ Mac and X11 extras. Yes, these are known.<br></blockquote><br><br>QtMacExtras is currently not in a releasable state. It's missing documentation, some examples and needs some general polish and bug fixes. <br><br>I think we also need to resolve the "native type" converters discussion to know which API's goes into QtMacExtras. <br><br>Since we are running out of time for 5.1 - should we postpone it to 5.2?<br><br>Morten<br>_______________________________________________<br>Development mailing list<br><a href="mailto:Development@qt-project.org">Development@qt-project.org</a><br>http://lists.qt-project.org/mailman/listinfo/development<br></blockquote></div><br></div></body></html>