Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/selectiontools/kis_tool_select_similar.cc
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | 149 | { | |||
---|---|---|---|---|---|
159 | KisSliderSpinBox* input = new KisSliderSpinBox(selectionWidget); | 159 | KisSliderSpinBox* input = new KisSliderSpinBox(selectionWidget); | ||
160 | input->setObjectName("fuzziness"); | 160 | input->setObjectName("fuzziness"); | ||
161 | input->setRange(0, 200); | 161 | input->setRange(0, 200); | ||
162 | input->setSingleStep(10); | 162 | input->setSingleStep(10); | ||
163 | fl->addWidget(input); | 163 | fl->addWidget(input); | ||
164 | connect(input, SIGNAL(valueChanged(int)), this, SLOT(slotSetFuzziness(int))); | 164 | connect(input, SIGNAL(valueChanged(int)), this, SLOT(slotSetFuzziness(int))); | ||
165 | 165 | | |||
166 | QVBoxLayout* l = dynamic_cast<QVBoxLayout*>(selectionWidget->layout()); | 166 | QVBoxLayout* l = dynamic_cast<QVBoxLayout*>(selectionWidget->layout()); | ||
167 | Q_ASSERT(l); | 167 | KIS_SAFE_ASSERT_RECOVER(l); | ||
dkazakov: Same here
| |||||
sourabhboss: Done | |||||
168 | l->insertLayout(1, fl); | 168 | l->insertLayout(1, fl); | ||
169 | 169 | | |||
170 | // load setting from config | 170 | // load setting from config | ||
171 | input->setValue(m_configGroup.readEntry("fuzziness", 20)); | 171 | input->setValue(m_configGroup.readEntry("fuzziness", 20)); | ||
172 | return selectionWidget; | 172 | return selectionWidget; | ||
173 | } | 173 | } | ||
174 | 174 | | |||
175 | void KisToolSelectSimilar::resetCursorStyle() | 175 | void KisToolSelectSimilar::resetCursorStyle() | ||
Show All 9 Lines |
Same here