diff options
Diffstat (limited to 'vcl/qt5/Qt5Graphics.cxx')
-rw-r--r-- | vcl/qt5/Qt5Graphics.cxx | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/vcl/qt5/Qt5Graphics.cxx b/vcl/qt5/Qt5Graphics.cxx index 676e9e54664e..eae47c5f21e9 100644 --- a/vcl/qt5/Qt5Graphics.cxx +++ b/vcl/qt5/Qt5Graphics.cxx @@ -18,7 +18,11 @@ */ #include "Qt5Graphics.hxx" + #include "Qt5Frame.hxx" +#include "Qt5Painter.hxx" + +#include <qt5/Qt5Font.hxx> #include <QtWidgets/QWidget> @@ -46,30 +50,6 @@ Qt5Graphics::~Qt5Graphics() delete m_pTextStyle[ i ]; } -void Qt5Graphics::PreparePainter( QPainter& rPainter, sal_uInt8 nTransparency ) -{ - if ( m_pQImage ) - rPainter.begin( m_pQImage ); - else - { - assert( dynamic_cast< QPaintDevice* >( m_pFrame->GetQWidget() ) ); - rPainter.begin( m_pFrame->GetQWidget() ); - } - if ( !m_aClipPath.isEmpty() ) - rPainter.setClipPath( m_aClipPath ); - else - rPainter.setClipRegion( m_aClipRegion ); - if ( SALCOLOR_NONE != m_aLineColor ) - { - QColor aColor = QColor::fromRgb( QRgb( m_aLineColor ) ); - aColor.setAlpha( nTransparency ); - rPainter.setPen( aColor ); - } - else - rPainter.setPen( Qt::NoPen ); - rPainter.setCompositionMode( m_eCompositionMode ); -} - void Qt5Graphics::ChangeQImage( QImage *pQImage ) { m_pQImage = pQImage; |