ui/viewmanagement/viewmanager/src/glxviewmanager.cpp
changeset 62 36d93b4dc635
parent 58 383b67fbdb11
child 71 27f2d7aec52a
--- a/ui/viewmanagement/viewmanager/src/glxviewmanager.cpp	Mon Aug 23 18:06:16 2010 +0530
+++ b/ui/viewmanagement/viewmanager/src/glxviewmanager.cpp	Sat Sep 04 11:36:24 2010 +0530
@@ -241,8 +241,8 @@
     static int i = 0;
     HbIcon icon;
     User::ResetInactivityTime();  
+    QString text( GLX_REFRESHING );
 
-    //To:Do temp code remove later
     if ( mProgressDialog ) {
         i = ++i % 10;
         icon = HbIcon( QString( ":/data/Wait/qgn_graf_ring_wait_%1.svg" ).arg( i + 1, 2, 10, QChar( '0' ) ) );
@@ -255,13 +255,16 @@
         }
         
         if ( currentValue < 0 ) {
-            mProgressDialog->setText( QString( GLX_REFRESHING ) ); //To:Do string will change later
+            mProgressDialog->setText( text ); 
             mProgressDialog->setProgressValue( 0 );
+            mProgressDialog->setProgressDialogType( HbProgressDialog::WaitDialog );
         }
         else {
             int value = max - currentValue;
             mProgressDialog->setProgressValue( value );
-            mProgressDialog->setText( QString( " %1 " ).arg( currentValue ) );
+            text.append( QString( "\n  %1 " ).arg( currentValue ) );
+            mProgressDialog->setText( text );
+            mProgressDialog->setProgressDialogType( HbProgressDialog::ProgressDialog );
         }
     }
 }