Kaydet (Commit) e05161ed authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski Kaydeden (comit) Thorsten Behrens

QT5 unify Graphics constructors

Change-Id: I85ce73e0e79927fa9233230bc4a9134db4c513dc
üst c512af2b
......@@ -26,19 +26,12 @@
#include <QtGui/QImage>
Qt5Graphics::Qt5Graphics( Qt5Frame *pFrame )
Qt5Graphics::Qt5Graphics( Qt5Frame *pFrame, QImage *pQImage )
: m_pFrame( pFrame )
, m_pQImage( nullptr )
, m_pFontCollection( nullptr )
, m_pFontData{ nullptr, }
, m_pTextStyle{ nullptr, }
, m_aTextColor( MAKE_SALCOLOR(0x00, 0x00, 0x00) )
{
}
Qt5Graphics::Qt5Graphics( QImage *pQImage )
: m_pFrame( nullptr )
, m_pQImage( pQImage )
, m_aLineColor( MAKE_SALCOLOR(0x00, 0x00, 0x00) )
, m_aFillColor( MAKE_SALCOLOR(0xFF, 0xFF, 0XFF) )
, m_eCompositionMode( QPainter::CompositionMode_SourceOver )
, m_pFontCollection( nullptr )
, m_pFontData{ nullptr, }
, m_pTextStyle{ nullptr, }
......
......@@ -52,11 +52,14 @@ class Qt5Graphics : public SalGraphics
Qt5Font *m_pTextStyle[ MAX_FALLBACK ];
SalColor m_aTextColor;
Qt5Graphics( Qt5Frame *pFrame, QImage *pQImage );
void PreparePainter( QPainter &rPainter, sal_uInt8 nTransparency = 0xff );
public:
Qt5Graphics( Qt5Frame *pFrame );
Qt5Graphics( QImage *pImage );
Qt5Graphics( Qt5Frame *pFrame )
: Qt5Graphics( pFrame, nullptr ) {}
Qt5Graphics( QImage *pQImage )
: Qt5Graphics( nullptr, pQImage ) {}
virtual ~Qt5Graphics() override;
void ChangeQImage( QImage *pImage );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment