Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 1e5cc421 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

UIParamList modified so that default value or data can be specified in the constructor.

parent 9aa5ec74
......@@ -26,6 +26,36 @@ public:
const QStringList& value = QStringList(),
const QList<int>& data = QList<int>() );
inline UIParamList( const QString& id,
const QString& name,
const QString& description,
const QStringList& value,
const QString& currentValue ) :
UIParamList( id, name, description, value )
{
SetValue( currentValue );
}
inline UIParamList( const QString& id,
const QString& name,
const QString& description,
const QStringList& value,
const QList<int>& data,
const QString& currentValue ) :
UIParamList( id, name, description, value, data )
{
SetValue( currentValue );
}
inline UIParamList( const QString& id,
const QString& name,
const QString& description,
const QStringList& value,
const QList<int>& data,
int currentData ) :
UIParamList( id, name, description, value, data )
{
SetData( currentData );
}
void SetValue( const QString& value );
inline QString Value() const { return Widget()->currentText(); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment