--- a/src/hbcore/utils/hbwidgetloadersyntax_p.cpp Fri Sep 17 08:32:10 2010 +0300
+++ b/src/hbcore/utils/hbwidgetloadersyntax_p.cpp Mon Oct 04 00:38:12 2010 +0300
@@ -250,18 +250,18 @@
for (int i = 0; retVal && i < layoutDef->anchorItems.count(); i++){
const HbWidgetLoader::AnchorItem &item = layoutDef->anchorItems.at(i);
HbXmlLengthValue minLength, prefLength, maxLength;
- minLength.mType = item.minType;
- minLength.mValue = item.minVal;
- minLength.mHashValue = item.minHashValue;
- minLength.mString = item.minText;
- prefLength.mType = item.prefType;
- prefLength.mValue = item.prefVal;
- prefLength.mHashValue = item.prefHashValue;
- prefLength.mString = item.prefText;
- maxLength.mType = item.maxType;
- maxLength.mValue = item.maxVal;
- maxLength.mHashValue = item.maxHashValue;
- maxLength.mString = item.maxText;
+
+
+ for (int i=0; i<item.minVal.count(); i++) {
+ minLength.mValues.append(item.minVal.at(i));
+ }
+ for (int j=0; j<item.prefVal.count(); j++) {
+ prefLength.mValues.append(item.prefVal.at(j));
+ }
+ for (int k=0; k<item.maxVal.count(); k++) {
+ maxLength.mValues.append(item.maxVal.at(k));
+ }
+
QSizePolicy::Policy sizepolicy;
QSizePolicy::Policy *sizepolicy_p = 0;
if ( item.sizepolicy != -1 ) {