Changeset View
Changeset View
Standalone View
Standalone View
app/imgprintdialog.cpp
Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Line(s) | 312 | { | |||
---|---|---|---|---|---|
313 | return (i18n("The scan resolution must be specified for scaling to it.")); | 313 | return (i18n("The scan resolution must be specified for scaling to it.")); | ||
314 | } | 314 | } | ||
315 | 315 | | |||
316 | if (id==KookaPrint::ScaleCustom && (m_sizeW->value()==0 || m_sizeH->value()==0)) | 316 | if (id==KookaPrint::ScaleCustom && (m_sizeW->value()==0 || m_sizeH->value()==0)) | ||
317 | { | 317 | { | ||
318 | return (i18n("A valid size must be specified for custom scaling. One or both of the specified dimensions is zero.")); | 318 | return (i18n("A valid size must be specified for custom scaling. One or both of the specified dimensions is zero.")); | ||
319 | } | 319 | } | ||
320 | 320 | | |||
321 | return (QString::null); // no problems | 321 | return (QString()); // no problems | ||
322 | } | 322 | } | ||
323 | 323 | | |||
324 | 324 | | |||
325 | void ImgPrintDialog::slotScaleChanged(int id) | 325 | void ImgPrintDialog::slotScaleChanged(int id) | ||
326 | { | 326 | { | ||
327 | m_dpi->setEnabled(id==KookaPrint::ScaleScan); | 327 | m_dpi->setEnabled(id==KookaPrint::ScaleScan); | ||
328 | m_ratio->setEnabled(id==KookaPrint::ScaleCustom || id==KookaPrint::ScaleFitPage); | 328 | m_ratio->setEnabled(id==KookaPrint::ScaleCustom || id==KookaPrint::ScaleFitPage); | ||
329 | m_sizeW->setEnabled(id==KookaPrint::ScaleCustom); | 329 | m_sizeW->setEnabled(id==KookaPrint::ScaleCustom); | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |