Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportSectionData.cpp
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | |||||
100 | { | 100 | { | ||
101 | return s1->position().toPoint().x() < s2->position().toPoint().x(); | 101 | return s1->position().toPoint().x() < s2->position().toPoint().x(); | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | void KReportSectionData::createProperties(const QDomElement & elemSource) | 104 | void KReportSectionData::createProperties(const QDomElement & elemSource) | ||
105 | { | 105 | { | ||
106 | m_set = new KPropertySet(this); | 106 | m_set = new KPropertySet(this); | ||
107 | KReportDesigner::addMetaProperties(m_set, | 107 | KReportDesigner::addMetaProperties(m_set, | ||
108 | tr("Section", "Report section"), QLatin1String("kreport_section_element")); | 108 | tr("Section", "Report section"), QLatin1String("kreport-section-element")); | ||
109 | 109 | | |||
110 | m_height = new KProperty("height", KReportUnit(KReportUnit::Centimeter).fromUserValue(2.0), tr("Height")); | 110 | m_height = new KProperty("height", KReportUnit(KReportUnit::Centimeter).fromUserValue(2.0), tr("Height")); | ||
111 | m_backgroundColor = new KProperty("background-color", QColor(Qt::white), tr("Background Color")); | 111 | m_backgroundColor = new KProperty("background-color", QColor(Qt::white), tr("Background Color")); | ||
112 | m_height->setOption("unit", QLatin1String("cm")); | 112 | m_height->setOption("unit", QLatin1String("cm")); | ||
113 | if (!elemSource.isNull()) | 113 | if (!elemSource.isNull()) | ||
114 | m_height->setValue(KReportUnit::parseValue(elemSource.attribute(QLatin1String("svg:height"), QLatin1String("2.0cm")))); | 114 | m_height->setValue(KReportUnit::parseValue(elemSource.attribute(QLatin1String("svg:height"), QLatin1String("2.0cm")))); | ||
115 | 115 | | |||
116 | m_set->addProperty(m_height); | 116 | m_set->addProperty(m_height); | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |