Robin Dunn
f7896d4dff
Use new parameter names in the existing CreateRadialGradientBrush methods too
2019-09-04 14:19:24 -07:00
Robin Dunn
c79085b54d
(blind) compilation fix for wxQtGraphicsRenderer gradient brush methods
2019-09-04 14:19:24 -07:00
Vadim Zeitlin
21e989751f
Get rid of m_ownsPainter flag in wxQtGraphicsContext
...
Use wxScopedPtr to ensure that the pointer is destroyed automatically
instead of doing it manually.
2019-01-21 19:44:05 +01:00
Vadim Zeitlin
8434adb00e
Use AttachPainter() instead of setting m_ownsPainter directly
...
No real changes, just another tiny simplification.
2019-01-21 19:40:22 +01:00
Vadim Zeitlin
6d91374dff
Simplify QPainter ownership in wxQtGraphicsContext
...
No real changes, just refactor the code to use more explicit
AttachPainter() when giving ownership of a new QPainter object to
wxQtGraphicsContext.
This method also allows to simplify wxQtImageContext as it doesn't need
to handle ownership on its own and can just leave it to the base class.
And m_ownsPainter can now be made private.
2019-01-21 19:40:11 +01:00
Jay Nabonne
b991dc9d5a
Fix using inactive painter when getting text extent
...
Ensure that the painter is active before using it.
2019-01-21 19:31:30 +01:00
Jay Nabonne
a5174c7483
Don't use desktop in wxQtMeasuringContext
...
This doesn't work, so create a new QPainter instead.
2019-01-21 19:20:57 +01:00
Jay Nabonne
1d117b75f7
Add wxGraphicsContext implementation for wxQt
...
Add graphics renderer using Qt classes and use it by default in wxQt
port under MSW.
Closes https://github.com/wxWidgets/wxWidgets/pull/1139
2019-01-17 00:50:47 +01:00