deviceupdatesui/deviceupdates/src/dmadvancedview.cpp
changeset 27 516a867811c3
parent 24 408f75ba5bc2
child 42 aa33c2cb9a50
--- a/deviceupdatesui/deviceupdates/src/dmadvancedview.cpp	Fri May 14 15:42:35 2010 +0300
+++ b/deviceupdatesui/deviceupdates/src/dmadvancedview.cpp	Thu May 27 12:45:33 2010 +0300
@@ -416,7 +416,7 @@
 void DmAdvancedView::mainCalltoUpdateView()
 {   
     int IndicatorCount =6;
-    otherdetailsmodel = new QStandardItemModel(IndicatorCount,0);
+    otherdetailsmodel = new QStandardItemModel();
     TInt i=0;
     TRequestStatus status;
     QStringList liststr;
@@ -549,6 +549,31 @@
     liststr << str;
     item->setData(liststr , Qt::DisplayRole);
     otherdetailsmodel->setItem(i++, item);
+	
+	    
+    TBuf<KSysUtilVersionTextLength> Langversion; 
+    TBuf<KSysUtilVersionTextLength> lversion;
+
+	    //lang variant version
+    Langversion.Zero();
+    if( SysUtil::GetLangSWVersion(Langversion ) == KErrNone )
+        {
+        int len = Langversion.Length();
+        TInt pos1 = Langversion.Find( KSmlEOL );
+        if( pos1 != KErrNotFound && len > pos1 )
+            {
+            lversion.Zero();
+            lversion.Append( Langversion.Left( pos1 ) );
+            }
+         str = QString::fromUtf16(lversion.Ptr(), lversion.Length());
+         item = new QStandardItem();
+         val = hbTrId("txt_device_update_dblist_language_variant_version");
+         liststr.clear();
+         liststr << val;
+         liststr << str;
+         item->setData(liststr , Qt::DisplayRole);
+         otherdetailsmodel->appendRow(item);
+        }
     
     otherdetailslist->setModel(otherdetailsmodel);