Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/textshape/dialogs/ParagraphBulletsNumbers.cpp
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Line(s) | 141 | if (llp.alignmentMode() == false) { //for list-level-position-and-space-mode=label-width-and-position disable the following options | |||
---|---|---|---|---|---|
149 | widget.doubleSpinBox_2->setEnabled(false); | 149 | widget.doubleSpinBox_2->setEnabled(false); | ||
150 | widget.doubleSpinBox_3->setEnabled(false); | 150 | widget.doubleSpinBox_3->setEnabled(false); | ||
151 | } else { | 151 | } else { | ||
152 | m_alignmentMode = true; | 152 | m_alignmentMode = true; | ||
153 | switch (llp.labelFollowedBy()) { | 153 | switch (llp.labelFollowedBy()) { | ||
154 | case KoListStyle::ListTab: | 154 | case KoListStyle::ListTab: | ||
155 | widget.doubleSpinBox->setEnabled(true); | 155 | widget.doubleSpinBox->setEnabled(true); | ||
156 | widget.labelFollowedBy->setCurrentIndex(0); | 156 | widget.labelFollowedBy->setCurrentIndex(0); | ||
157 | widget.doubleSpinBox->setValue(KoUnit::toCentimeter(llp.tabStopPosition())); | 157 | widget.doubleSpinBox->setValue(KoUnit(KoUnit::Centimeter).toUserValue(llp.tabStopPosition())); | ||
158 | break; | 158 | break; | ||
159 | case KoListStyle::Space: | 159 | case KoListStyle::Space: | ||
160 | widget.doubleSpinBox->setEnabled(false); | 160 | widget.doubleSpinBox->setEnabled(false); | ||
161 | widget.labelFollowedBy->setCurrentIndex(1); | 161 | widget.labelFollowedBy->setCurrentIndex(1); | ||
162 | break; | 162 | break; | ||
163 | case KoListStyle::Nothing: | 163 | case KoListStyle::Nothing: | ||
164 | widget.doubleSpinBox->setEnabled(false); | 164 | widget.doubleSpinBox->setEnabled(false); | ||
165 | widget.labelFollowedBy->setCurrentIndex(2); | 165 | widget.labelFollowedBy->setCurrentIndex(2); | ||
166 | break; | 166 | break; | ||
167 | default: | 167 | default: | ||
168 | Q_ASSERT(false); | 168 | Q_ASSERT(false); | ||
169 | } | 169 | } | ||
170 | 170 | | |||
171 | widget.doubleSpinBox_2->setValue(KoUnit::toCentimeter(llp.margin())); | 171 | widget.doubleSpinBox_2->setValue(KoUnit(KoUnit::Centimeter).toUserValue(llp.margin())); | ||
172 | widget.doubleSpinBox_3->setValue(KoUnit::toCentimeter(llp.margin()) + KoUnit::toCentimeter(llp.textIndent())); | 172 | widget.doubleSpinBox_3->setValue(KoUnit(KoUnit::Centimeter).toUserValue(llp.margin()) + KoUnit(KoUnit::Centimeter).toUserValue(llp.textIndent())); | ||
173 | } | 173 | } | ||
174 | 174 | | |||
175 | // *** features not in GUI; | 175 | // *** features not in GUI; | ||
176 | // character style | 176 | // character style | ||
177 | // relative bullet size (percent) | 177 | // relative bullet size (percent) | ||
178 | // minimum label width | 178 | // minimum label width | ||
179 | recalcPreview(); | 179 | recalcPreview(); | ||
180 | } | 180 | } | ||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |