LocaleConfigMoney::LocaleConfigMoney(Locale *locale, QWidget *parent) : QWidget(parent), m_locale(locale) { setupUi(this); // Money m_labMonCurSym->setObjectName( I18N_NOOP("Currency symbol:") ); /* m_labMonDecSym->setObjectName( I18N_NOOP("Decimal symbol:") ); m_labMonThoSep->setObjectName( I18N_NOOP("Thousands separator:") );*/ m_labMonFraDig->setObjectName( I18N_NOOP("Fract digits:") ); m_positiveGB->setObjectName( I18N_NOOP("Positive") ); m_chMonPosPreCurSym->setObjectName(I18N_NOOP("Prefix currency symbol")); m_labMonPosMonSignPos->setObjectName( I18N_NOOP("Sign position:") ); m_negativeGB->setObjectName( I18N_NOOP("Negative") ); m_chMonNegPreCurSym->setObjectName(I18N_NOOP("Prefix currency symbol")); m_labMonNegMonSignPos->setObjectName( I18N_NOOP("Sign position:") ); // m_labMonDigSet->setObjectName( I18N_NOOP("Digit set:") ); connect( m_edMonCurSym, SIGNAL(textChanged(QString)), SLOT(slotMonCurSymChanged(QString)) ); // connect( m_edMonDecSym, SIGNAL(textChanged(QString)), // SLOT(slotMonDecSymChanged(QString)) ); // // connect( m_edMonThoSep, SIGNAL(textChanged(QString)), // SLOT(slotMonThoSepChanged(QString)) ); // connect( m_inMonFraDig, SIGNAL(valueChanged(int)), SLOT(slotMonFraDigChanged(int)) ); connect( m_chMonPosPreCurSym, SIGNAL(clicked()), SLOT(slotMonPosPreCurSymChanged()) ); connect( m_cmbMonPosMonSignPos, SIGNAL(activated(int)), SLOT(slotMonPosMonSignPosChanged(int)) ); connect( m_chMonNegPreCurSym, SIGNAL(clicked()), SLOT(slotMonNegPreCurSymChanged()) ); connect( m_cmbMonNegMonSignPos, SIGNAL(activated(int)), SLOT(slotMonNegMonSignPosChanged(int)) ); // connect( m_cmbMonDigSet, SIGNAL(activated(int)), // SLOT(slotMonDigSetChanged(int)) ); m_inMonFraDig->setRange(0, 10); m_inMonFraDig->setSingleStep(1); slotTranslate(); slotLocaleChanged(); }
LocaleConfigMoney::LocaleConfigMoney(Locale *locale, QWidget *parent) : QWidget(parent), m_locale(locale) { setupUi(this); // Money m_labMonCurSym->setObjectName( I18N_NOOP("Currency symbol:") ); m_labMonFraDig->setObjectName( I18N_NOOP("Fract digits:") ); connect(m_edMonCurSym,SIGNAL(textChanged(QString)),SLOT(slotMonCurSymChanged(QString))); connect(m_inMonFraDig,SIGNAL(valueChanged(int)),SLOT(slotMonFraDigChanged(int))); m_inMonFraDig->setRange(0, 10); m_inMonFraDig->setSingleStep(1); slotTranslate(); slotLocaleChanged(); }