|
|
@ -64,7 +64,6 @@ private: |
|
|
|
QSize mSize; |
|
|
|
QSize mSize; |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
// to kill
|
|
|
|
|
|
|
|
QDomDocument mDOMdoc; |
|
|
|
QDomDocument mDOMdoc; |
|
|
|
QDomNode mCurrentDOMElement; |
|
|
|
QDomNode mCurrentDOMElement; |
|
|
|
QHash<QString, UBGraphicsItem*> persistedItems; |
|
|
|
QHash<QString, UBGraphicsItem*> persistedItems; |
|
|
@ -101,7 +100,6 @@ private: |
|
|
|
, int &fontWeight, int &textAlign, QTransform &fontTransform); |
|
|
|
, int &fontWeight, int &textAlign, QTransform &fontTransform); |
|
|
|
inline void hashSceneItem(const QDomElement &element, UBGraphicsItem *item); |
|
|
|
inline void hashSceneItem(const QDomElement &element, UBGraphicsItem *item); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// to kill
|
|
|
|
// to kill
|
|
|
|
void parseTextAttributes(const QDomElement &element, qreal &fontSize, QColor &fontColor, |
|
|
|
void parseTextAttributes(const QDomElement &element, qreal &fontSize, QColor &fontColor, |
|
|
|
QString &fontFamily, QString &fontStretch, bool &italic, |
|
|
|
QString &fontFamily, QString &fontStretch, bool &italic, |
|
|
@ -114,7 +112,6 @@ private: |
|
|
|
bool persistCurrentScene(); |
|
|
|
bool persistCurrentScene(); |
|
|
|
|
|
|
|
|
|
|
|
// helper methods
|
|
|
|
// helper methods
|
|
|
|
// bool getCurElementTransorm(QTransform &transform);
|
|
|
|
|
|
|
|
void repositionSvgItem(QGraphicsItem *item, qreal width, qreal height, |
|
|
|
void repositionSvgItem(QGraphicsItem *item, qreal width, qreal height, |
|
|
|
qreal x, qreal y, |
|
|
|
qreal x, qreal y, |
|
|
|
bool useTransform, QTransform &transform); |
|
|
|
bool useTransform, QTransform &transform); |
|
|
|