Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/selectiontools/kis_tool_select_contiguous.cc
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | |||||
162 | QWidget* KisToolSelectContiguous::createOptionWidget() | 162 | QWidget* KisToolSelectContiguous::createOptionWidget() | ||
163 | { | 163 | { | ||
164 | KisToolSelectBase::createOptionWidget(); | 164 | KisToolSelectBase::createOptionWidget(); | ||
165 | KisSelectionOptions *selectionWidget = selectionOptionWidget(); | 165 | KisSelectionOptions *selectionWidget = selectionOptionWidget(); | ||
166 | 166 | | |||
167 | selectionWidget->disableSelectionModeOption(); | 167 | selectionWidget->disableSelectionModeOption(); | ||
168 | 168 | | |||
169 | QVBoxLayout * l = dynamic_cast<QVBoxLayout*>(selectionWidget->layout()); | 169 | QVBoxLayout * l = dynamic_cast<QVBoxLayout*>(selectionWidget->layout()); | ||
170 | Q_ASSERT(l); | 170 | KIS_SAFE_ASSERT_RECOVER(l); | ||
171 | if (l) { | 171 | if (l) { | ||
172 | 172 | | |||
173 | QGridLayout * gridLayout = new QGridLayout(); | 173 | QGridLayout * gridLayout = new QGridLayout(); | ||
174 | l->insertLayout(1, gridLayout); | 174 | l->insertLayout(1, gridLayout); | ||
175 | 175 | | |||
176 | QLabel * lbl = new QLabel(i18n("Fuzziness: "), selectionWidget); | 176 | QLabel * lbl = new QLabel(i18n("Fuzziness: "), selectionWidget); | ||
177 | gridLayout->addWidget(lbl, 0, 0, 1, 1); | 177 | gridLayout->addWidget(lbl, 0, 0, 1, 1); | ||
178 | 178 | | |||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |