Changeset View
Changeset View
Standalone View
Standalone View
lib/crop/cropwidget.cpp
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Line(s) | 173 | { | |||
---|---|---|---|---|---|
211 | 211 | | |||
212 | // Enable clear button | 212 | // Enable clear button | ||
213 | edit->setClearButtonEnabled(true); | 213 | edit->setClearButtonEnabled(true); | ||
214 | // Must manually adjust minimum width because the auto size adjustment doesn't take the | 214 | // Must manually adjust minimum width because the auto size adjustment doesn't take the | ||
215 | // clear button into account | 215 | // clear button into account | ||
216 | const int width = ratioComboBox->minimumSizeHint().width(); | 216 | const int width = ratioComboBox->minimumSizeHint().width(); | ||
217 | ratioComboBox->setMinimumWidth(width + 24); | 217 | ratioComboBox->setMinimumWidth(width + 24); | ||
218 | 218 | | |||
219 | ratioComboBox->setCurrentIndex(-1); | 219 | mCropRatioComboBoxCurrentIndex = -1; | ||
220 | ratioComboBox->setCurrentIndex(mCropRatioComboBoxCurrentIndex); | ||||
220 | } | 221 | } | ||
221 | 222 | | |||
222 | QRect cropRect() const | 223 | QRect cropRect() const | ||
223 | { | 224 | { | ||
224 | QRect rect( | 225 | QRect rect( | ||
225 | leftSpinBox->value(), | 226 | leftSpinBox->value(), | ||
226 | topSpinBox->value(), | 227 | topSpinBox->value(), | ||
227 | widthSpinBox->value(), | 228 | widthSpinBox->value(), | ||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |