Changeset View
Changeset View
Standalone View
Standalone View
dialogs/imagelib/transforms/kpTransformResizeScaleDialog.cpp
Show First 20 Lines • Show All 283 Lines • ▼ Show 20 Line(s) | 281 | { | |||
---|---|---|---|---|---|
284 | QLabel *widthLabel = new QLabel (i18n ("Width:"), dimensionsGroupBox); | 284 | QLabel *widthLabel = new QLabel (i18n ("Width:"), dimensionsGroupBox); | ||
285 | widthLabel->setAlignment (widthLabel->alignment () | Qt::AlignHCenter); | 285 | widthLabel->setAlignment (widthLabel->alignment () | Qt::AlignHCenter); | ||
286 | QLabel *heightLabel = new QLabel (i18n ("Height:"), dimensionsGroupBox); | 286 | QLabel *heightLabel = new QLabel (i18n ("Height:"), dimensionsGroupBox); | ||
287 | heightLabel->setAlignment (heightLabel->alignment () | Qt::AlignHCenter); | 287 | heightLabel->setAlignment (heightLabel->alignment () | Qt::AlignHCenter); | ||
288 | 288 | | |||
289 | QLabel *originalLabel = new QLabel (i18n ("Original:"), dimensionsGroupBox); | 289 | QLabel *originalLabel = new QLabel (i18n ("Original:"), dimensionsGroupBox); | ||
290 | m_originalWidthInput = new QSpinBox; | 290 | m_originalWidthInput = new QSpinBox; | ||
291 | m_originalWidthInput->setRange(1, INT_MAX); | 291 | m_originalWidthInput->setRange(1, INT_MAX); | ||
292 | m_originalWidthInput->setValue(document()->width((bool)selection())); | 292 | m_originalWidthInput->setValue(document()->width(static_cast<bool> (selection()))); | ||
293 | QLabel *xLabel0 = new QLabel (i18n ("x"), dimensionsGroupBox); | 293 | QLabel *xLabel0 = new QLabel (i18n ("x"), dimensionsGroupBox); | ||
294 | m_originalHeightInput = new QSpinBox; | 294 | m_originalHeightInput = new QSpinBox; | ||
295 | m_originalHeightInput->setRange(1, INT_MAX); | 295 | m_originalHeightInput->setRange(1, INT_MAX); | ||
296 | m_originalHeightInput->setValue(document()->height((bool)selection())); | 296 | m_originalHeightInput->setValue(document()->height(static_cast<bool> (selection()))); | ||
297 | 297 | | |||
298 | QLabel *newLabel = new QLabel (i18n ("&New:"), dimensionsGroupBox); | 298 | QLabel *newLabel = new QLabel (i18n ("&New:"), dimensionsGroupBox); | ||
299 | m_newWidthInput = new QSpinBox; | 299 | m_newWidthInput = new QSpinBox; | ||
300 | m_newWidthInput->setRange(1, INT_MAX); | 300 | m_newWidthInput->setRange(1, INT_MAX); | ||
301 | QLabel *xLabel1 = new QLabel (i18n ("x"), dimensionsGroupBox); | 301 | QLabel *xLabel1 = new QLabel (i18n ("x"), dimensionsGroupBox); | ||
302 | m_newHeightInput = new QSpinBox; | 302 | m_newHeightInput = new QSpinBox; | ||
303 | m_newHeightInput->setRange(1, INT_MAX); | 303 | m_newHeightInput->setRange(1, INT_MAX); | ||
304 | 304 | | |||
▲ Show 20 Lines • Show All 519 Lines • Show Last 20 Lines |