From: Andrey Paskal Date: Wed, 9 Jul 2008 04:15:16 +0000 (+0400) Subject: Fix for compilation error under win32. X-Git-Url: https://gitweb.ananas.su/?a=commitdiff_plain;h=152cd90bd41e3e7c819fce93231e0709307e3a96;p=projects%2Fananas-labs.git Fix for compilation error under win32. --- diff --git a/src/designer/deditfield.ui b/src/designer/deditfield.ui index cbcc76b..c4e87ad 100644 --- a/src/designer/deditfield.ui +++ b/src/designer/deditfield.ui @@ -8,7 +8,7 @@ 0 0 - 570 + 569 507 @@ -675,92 +675,70 @@ - + - layout10 + layout9 unnamed - - - - yyyyMMdd - - - - - yyMMdd - - - - - dd MMMM yyyy - - + - aDFormatBox + PrLabel + + + Prefix: + + + + + ePrefix - 1 + 7 0 - 2 + 1 0 - textLabel2 + textLabel1_6 - or + + - useOwnFofmat + lzcheckBox - Own format + LZ - + - eOwnFormat + textLabel1_3 - - - 7 - 0 - 1 - 0 - + + + UID + - - - - - layout9 - - - - unnamed - - PrLabel + SfLabel - Prefix: + Suffix: - ePrefix + eSuffix @@ -771,41 +749,55 @@ - - - textLabel1_6 - - - + - - - + + + + + layout8 + + + + unnamed + + + + + yyyyMMdd + + + + + yyMMdd + + + + + dd MMMM yyyy + + - lzcheckBox - - - LZ + aDFormatBox - textLabel1_3 + textLabel2 - + UID + + or - + - SfLabel + useOwnFofmat - Suffix: + Own format - eSuffix + eOwnFormat @@ -934,8 +926,6 @@ - - eType @@ -962,12 +952,6 @@ setExample() - aDFormatBox - activated(const QString&) - dEditField - setExample() - - ePrefix textChanged(const QString&) dEditField @@ -1045,6 +1029,12 @@ dEditField eWidth_valueChanged(int) + + aDFormatBox + activated(int) + dEditField + setExample() + acfg.h @@ -1084,7 +1074,4 @@ - - acombobox.h - diff --git a/src/designer/deditfield.ui.h b/src/designer/deditfield.ui.h index e46ea26..6d8e4b1 100644 --- a/src/designer/deditfield.ui.h +++ b/src/designer/deditfield.ui.h @@ -144,7 +144,7 @@ void dEditField::setData( aListViewItem *o ) lzcheckBox->setChecked( md->attr( obj, mda_lz ) == "1" ); VdRegEx->setText( md->attr( obj, mda_validator ) ); inputMask->setText( md->attr( obj, mda_inputmask ) ); - + aDFormatBox->setEnabled(FALSE); if (md->attr( obj, mda_numdate) != "") { DateFormat->setChecked( md->attr( obj, mda_numdate) != ""); @@ -524,12 +524,13 @@ void dEditField::setExample() if (lzcheckBox->isChecked()) { - numerator = QString("789").rightJustify( eWidth->value(), '0' ); + numerator = QString("789").rightJustify( 8, '0' ); } else { numerator = QString("789"); } eXample->setText(QString("%1%2%3%4").arg(ePrefix->text()).arg(numerator).arg(eSuffix->text()).arg(curdate)); + eWidth->setValue(eXample->text().length()); }