43 cfg.insert(
"field_format", configElement.attribute(
"field_format" ) );
44 cfg.insert(
"display_format", configElement.attribute(
"display_format" ) );
45 cfg.insert(
"calendar_popup", configElement.attribute(
"calendar_popup" ) ==
"1" );
46 cfg.insert(
"allow_null", configElement.attribute(
"allow_null" ) ==
"1" );
57 configElement.setAttribute(
"field_format", config[
"field_format"].toString() );
58 configElement.setAttribute(
"display_format", config[
"display_format"].toString() );
59 configElement.setAttribute(
"calendar_popup", config[
"calendar_popup"].toBool() );
60 configElement.setAttribute(
"allow_null", config[
"allow_null"].toBool() );
74 return settings.value(
"qgis/nullValue",
"NULL" ).toString();
80 QDateTime date = QDateTime::fromString( value.toString(), fieldFormat );
84 result = date.toString( displayFormat );
88 result = value.toString();