Changeset View
Changeset View
Standalone View
Standalone View
src/items/text/KReportItemText.cpp
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Line(s) | 108 | { | |||
---|---|---|---|---|---|
128 | m_font = new KProperty("font", QApplication::font(), tr("Font")); | 128 | m_font = new KProperty("font", QApplication::font(), tr("Font")); | ||
129 | 129 | | |||
130 | m_backgroundColor = new KProperty("background-color", QColor(Qt::white), tr("Background Color")); | 130 | m_backgroundColor = new KProperty("background-color", QColor(Qt::white), tr("Background Color")); | ||
131 | m_foregroundColor = new KProperty("foreground-color", QColor(Qt::black), tr("Foreground Color")); | 131 | m_foregroundColor = new KProperty("foreground-color", QColor(Qt::black), tr("Foreground Color")); | ||
132 | 132 | | |||
133 | m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); | 133 | m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); | ||
134 | m_lineWeight->setOption("step", 1.0); | 134 | m_lineWeight->setOption("step", 1.0); | ||
135 | m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); | 135 | m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); | ||
136 | m_lineStyle = new KProperty("line-style", static_cast<int>(Qt::NoPen), tr("Line Style"), tr("Line Style"), KProperty::LineStyle); | 136 | m_lineStyle = new KProperty("line-style", static_cast<int>(Qt::NoPen), tr("Line Style"), QString(), KProperty::LineStyle); | ||
137 | m_backgroundOpacity = new KProperty("background-opacity", QVariant(0), tr("Background Opacity")); | 137 | m_backgroundOpacity = new KProperty("background-opacity", QVariant(0), tr("Background Opacity")); | ||
138 | m_backgroundOpacity->setOption("max", 100); | 138 | m_backgroundOpacity->setOption("max", 100); | ||
139 | m_backgroundOpacity->setOption("min", 0); | 139 | m_backgroundOpacity->setOption("min", 0); | ||
140 | m_backgroundOpacity->setOption("unit", QLatin1String("%")); | 140 | m_backgroundOpacity->setOption("unit", QLatin1String("%")); | ||
141 | 141 | | |||
142 | propertySet()->addProperty(m_controlSource); | 142 | propertySet()->addProperty(m_controlSource); | ||
143 | propertySet()->addProperty(m_itemValue); | 143 | propertySet()->addProperty(m_itemValue); | ||
144 | propertySet()->addProperty(m_horizontalAlignment); | 144 | propertySet()->addProperty(m_horizontalAlignment); | ||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |