// ------------------------------------- // Sets the limit and format arrays. void ChoiceFormat::setChoices( const double* limits, const UnicodeString* formats, int32_t cnt ) { setChoices(limits, 0, formats, cnt); }
//----------------------------------------------------------------------------- // Function: ParameterDelegate::ParameterDelegate() //----------------------------------------------------------------------------- ParameterDelegate::ParameterDelegate(QSharedPointer<QList<QSharedPointer<Choice> > > choices, QCompleter* parameterCompleter, QSharedPointer<ParameterFinder> parameterFinder, QSharedPointer<ExpressionFormatter> expressionFormatter, QObject* parent): ChoiceCreatorDelegate(parameterCompleter, parameterFinder, parent), expressionFormatter_(expressionFormatter) { setChoices(choices); }
ChoiceFormat::ChoiceFormat(const double* limits, const UnicodeString* formats, int32_t cnt ) : constructorErrorCode(U_ZERO_ERROR), msgPattern(constructorErrorCode) { setChoices(limits, NULL, formats, cnt, constructorErrorCode); }
// ------------------------------------- // Sets the limit and format arrays. void ChoiceFormat::setChoices( const double* limits, const UnicodeString* formats, int32_t cnt ) { UErrorCode errorCode = U_ZERO_ERROR; setChoices(limits, NULL, formats, cnt, errorCode); }
ChoiceFormat::ChoiceFormat(const double* limits, const UnicodeString* formats, int32_t cnt ) : fChoiceLimits(0), fClosures(0), fChoiceFormats(0), fCount(0) { setChoices(limits, formats, cnt ); }