Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportItemLine.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | |||||
71 | void KReportItemLine::createProperties() | 71 | void KReportItemLine::createProperties() | ||
72 | { | 72 | { | ||
73 | m_start = new KProperty("startposition", QPointF(), QCoreApplication::translate("StartPosition", "Start Position")); | 73 | m_start = new KProperty("startposition", QPointF(), QCoreApplication::translate("StartPosition", "Start Position")); | ||
74 | m_end = new KProperty("endposition", QPointF(), QCoreApplication::translate("EndPosition", "End Position")); | 74 | m_end = new KProperty("endposition", QPointF(), QCoreApplication::translate("EndPosition", "End Position")); | ||
75 | 75 | | |||
76 | m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); | 76 | m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); | ||
77 | m_lineWeight->setOption("step", 1.0); | 77 | m_lineWeight->setOption("step", 1.0); | ||
78 | m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); | 78 | m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); | ||
79 | m_lineStyle = new KProperty("line-style", (int)Qt::SolidLine, tr("Line Style"), tr("Line Style"), KProperty::LineStyle); | 79 | m_lineStyle = new KProperty("line-style", (int)Qt::SolidLine, tr("Line Style"), QString(), KProperty::LineStyle); | ||
80 | 80 | | |||
81 | //Remove the unused properies from KReportItemBase | 81 | //Remove the unused properies from KReportItemBase | ||
82 | propertySet()->removeProperty("size"); | 82 | propertySet()->removeProperty("size"); | ||
83 | propertySet()->removeProperty("position"); | 83 | propertySet()->removeProperty("position"); | ||
84 | 84 | | |||
85 | propertySet()->addProperty(m_start); | 85 | propertySet()->addProperty(m_start); | ||
86 | propertySet()->addProperty(m_end); | 86 | propertySet()->addProperty(m_end); | ||
87 | propertySet()->addProperty(m_lineWeight); | 87 | propertySet()->addProperty(m_lineWeight); | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |