Changeset View
Changeset View
Standalone View
Standalone View
core/annotations.cpp
Show First 20 Lines • Show All 744 Lines • ▼ Show 20 Line(s) | 744 | if ( d->m_modifyDate.isValid() ) | |||
---|---|---|---|---|---|
745 | e.setAttribute( QStringLiteral("modifyDate"), d->m_modifyDate.toString(Qt::ISODate) ); | 745 | e.setAttribute( QStringLiteral("modifyDate"), d->m_modifyDate.toString(Qt::ISODate) ); | ||
746 | if ( d->m_creationDate.isValid() ) | 746 | if ( d->m_creationDate.isValid() ) | ||
747 | e.setAttribute( QStringLiteral("creationDate"), d->m_creationDate.toString(Qt::ISODate) ); | 747 | e.setAttribute( QStringLiteral("creationDate"), d->m_creationDate.toString(Qt::ISODate) ); | ||
748 | 748 | | |||
749 | // store -other- attributes | 749 | // store -other- attributes | ||
750 | if ( d->m_flags ) // Strip internal flags | 750 | if ( d->m_flags ) // Strip internal flags | ||
751 | e.setAttribute( QStringLiteral("flags"), d->m_flags & ~(External | ExternallyDrawn | BeingMoved | BeingResized ) ); | 751 | e.setAttribute( QStringLiteral("flags"), d->m_flags & ~(External | ExternallyDrawn | BeingMoved | BeingResized ) ); | ||
752 | if ( d->m_style.color().isValid() ) | 752 | if ( d->m_style.color().isValid() ) | ||
753 | e.setAttribute( QStringLiteral("color"), d->m_style.color().name() ); | 753 | e.setAttribute( QStringLiteral("color"), d->m_style.color().name(QColor::HexArgb) ); | ||
754 | if ( d->m_style.opacity() != 1.0 ) | 754 | if ( d->m_style.opacity() != 1.0 ) | ||
755 | e.setAttribute( QStringLiteral("opacity"), QString::number( d->m_style.opacity() ) ); | 755 | e.setAttribute( QStringLiteral("opacity"), QString::number( d->m_style.opacity() ) ); | ||
756 | 756 | | |||
757 | // Sub-Node-1 - boundary | 757 | // Sub-Node-1 - boundary | ||
758 | QDomElement bE = document.createElement( QStringLiteral("boundary") ); | 758 | QDomElement bE = document.createElement( QStringLiteral("boundary") ); | ||
759 | e.appendChild( bE ); | 759 | e.appendChild( bE ); | ||
760 | bE.setAttribute( QStringLiteral("l"), QString::number( d->m_boundary.left ) ); | 760 | bE.setAttribute( QStringLiteral("l"), QString::number( d->m_boundary.left ) ); | ||
761 | bE.setAttribute( QStringLiteral("t"), QString::number( d->m_boundary.top ) ); | 761 | bE.setAttribute( QStringLiteral("t"), QString::number( d->m_boundary.top ) ); | ||
▲ Show 20 Lines • Show All 2340 Lines • Show Last 20 Lines |