ui/viewmanagement/viewmanager/src/glxviewmanager.cpp
changeset 52 a3a4c0de738e
parent 50 a0f57508af73
child 54 0f0f3f26f787
equal deleted inserted replaced
50:a0f57508af73 52:a3a4c0de738e
   245     User::ResetInactivityTime();  
   245     User::ResetInactivityTime();  
   246 
   246 
   247     //To:Do temp code remove later
   247     //To:Do temp code remove later
   248     if ( mProgressDialog ) {
   248     if ( mProgressDialog ) {
   249         i = ++i % 10;
   249         i = ++i % 10;
   250         switch ( i ) {
   250         icon = HbIcon( QString( ":/data/wait/qgn_graf_ring_wait_%1.svg" ).arg( i + 1, 2, 10, QChar( '0' ) ) );
   251         case 0 :
   251         mProgressDialog->setIcon(icon);
   252             icon = HbIcon( QString(":/data/Image1.jpg") );
       
   253             break;
       
   254         case 1 :
       
   255             icon = HbIcon( QString(":/data/Image2.jpg") );
       
   256             break;
       
   257         case 2 :
       
   258             icon = HbIcon( QString(":/data/Image3.jpg") );
       
   259             break;
       
   260         case 3 :
       
   261             icon = HbIcon( QString(":/data/Image4.jpg") );
       
   262             break;
       
   263         case 4 :
       
   264             icon = HbIcon( QString(":/data/Image5.jpg") );
       
   265             break;
       
   266         case 5 :
       
   267             icon = HbIcon( QString(":/data/Image6.jpg") );
       
   268             break;
       
   269         case 6 :
       
   270             icon = HbIcon( QString(":/data/Image7.jpg") );
       
   271             break;
       
   272         case 7 :
       
   273             icon = HbIcon( QString(":/data/Image8.jpg") );
       
   274             break;
       
   275         case 8 :
       
   276             icon = HbIcon( QString(":/data/Image9.jpg") );
       
   277             break;
       
   278         case 9 :
       
   279             icon = HbIcon( QString(":/data/Image10.jpg") );
       
   280             break;            
       
   281         }
       
   282         
   252         
   283         int max = mProgressDialog->maximum() ;
   253         int max = mProgressDialog->maximum() ;
   284         if ( currentValue > max ) {
   254         if ( currentValue > max ) {
   285             mProgressDialog->setMaximum( currentValue );
   255             mProgressDialog->setMaximum( currentValue );
   286             max = currentValue ;
   256             max = currentValue ;
   287         }
   257         }
   288         
       
   289         mProgressDialog->setIcon(icon);
       
   290         
   258         
   291         if ( currentValue < 0 ) {
   259         if ( currentValue < 0 ) {
   292             mProgressDialog->setText( QString( GLX_REFRESHING ) ); //To:Do string will change later
   260             mProgressDialog->setText( QString( GLX_REFRESHING ) ); //To:Do string will change later
   293             mProgressDialog->setProgressValue( 0 );
   261             mProgressDialog->setProgressValue( 0 );
   294         }
   262         }