Changeset View
Changeset View
Standalone View
Standalone View
lib/documentview/svgviewadapter.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | 53 | | |||
54 | private Q_SLOTS: | 54 | private Q_SLOTS: | ||
55 | void finishLoadFromDocument(); | 55 | void finishLoadFromDocument(); | ||
56 | 56 | | |||
57 | private: | 57 | private: | ||
58 | QGraphicsSvgItem* mSvgItem; | 58 | QGraphicsSvgItem* mSvgItem; | ||
59 | AbstractImageView::AlphaBackgroundMode mAlphaBackgroundMode; | 59 | AbstractImageView::AlphaBackgroundMode mAlphaBackgroundMode; | ||
60 | QColor mAlphaBackgroundColor; | 60 | QColor mAlphaBackgroundColor; | ||
61 | bool mDocumentFullyLoaded; | ||||
62 | | ||||
61 | void adjustItemPos(); | 63 | void adjustItemPos(); | ||
62 | void drawAlphaBackground(QPainter* painter); | 64 | void drawAlphaBackground(QPainter* painter); | ||
63 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override; | 65 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override; | ||
64 | }; | 66 | }; | ||
65 | 67 | | |||
66 | struct SvgViewAdapterPrivate; | 68 | struct SvgViewAdapterPrivate; | ||
67 | class GWENVIEWLIB_EXPORT SvgViewAdapter : public AbstractDocumentViewAdapter | 69 | class GWENVIEWLIB_EXPORT SvgViewAdapter : public AbstractDocumentViewAdapter | ||
68 | { | 70 | { | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |