equal
deleted
inserted
replaced
1165 CGContextRef context = reinterpret_cast<CGContextRef>([[qt_mac_window_for(widget) graphicsContext] graphicsPort]); |
1165 CGContextRef context = reinterpret_cast<CGContextRef>([[qt_mac_window_for(widget) graphicsContext] graphicsPort]); |
1166 #endif |
1166 #endif |
1167 return context; |
1167 return context; |
1168 } |
1168 } |
1169 |
1169 |
|
1170 void qt_mac_dispatchPendingUpdateRequests(QWidget *widget) |
|
1171 { |
|
1172 if (!widget) |
|
1173 return; |
|
1174 #ifndef QT_MAC_USE_COCOA |
|
1175 HIViewRender(qt_mac_nativeview_for(widget)); |
|
1176 #else |
|
1177 [qt_mac_nativeview_for(widget) displayIfNeeded]; |
|
1178 #endif |
|
1179 } |
|
1180 |
1170 CGFloat qt_mac_get_scalefactor() |
1181 CGFloat qt_mac_get_scalefactor() |
1171 { |
1182 { |
1172 #ifndef QT_MAC_USE_COCOA |
1183 #ifndef QT_MAC_USE_COCOA |
1173 return HIGetScaleFactor(); |
1184 return HIGetScaleFactor(); |
1174 #else |
1185 #else |