diff options
author | Morten Sorvig <morten.sorvig@nokia.com> | 2011-10-26 10:00:26 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-27 09:37:29 +0200 |
commit | db44fdf4d65493706dc9a0aaf5e58729dc7867f9 (patch) | |
tree | 430231ce03f1ccc9720836714db2dda8a572a5b8 /src/plugins/platforms/cocoa/qcocoahelpers.mm | |
parent | af8795c2b5305cf92df3249c6bd3cc6292415d8f (diff) |
Cocoa: Implement propagateSizeHints.
Change-Id: Idc1244ffbf975972f01d9ee48092500a72739d37
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoahelpers.mm')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoahelpers.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.mm b/src/plugins/platforms/cocoa/qcocoahelpers.mm index 7e82405ce3..113415f480 100644 --- a/src/plugins/platforms/cocoa/qcocoahelpers.mm +++ b/src/plugins/platforms/cocoa/qcocoahelpers.mm @@ -128,6 +128,10 @@ NSImage *qt_mac_create_nsimage(const QPixmap &pm) return qt_mac_cgimage_to_nsimage(qt_mac_image_to_cgimage(image)); } +NSSize qt_mac_toNSSize(const QSize &qtSize) +{ + return NSMakeSize(qtSize.width(), qtSize.height()); +} // Use this method to keep all the information in the TextSegment. As long as it is ordered // we are in OK shape, and we can influence that ourselves. |