phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidget.cpp
changeset 30 ebdbd102c78a
parent 27 2f8f8080a020
equal deleted inserted replaced
27:2f8f8080a020 30:ebdbd102c78a
   127 */
   127 */
   128 InfoWidget::~InfoWidget()
   128 InfoWidget::~InfoWidget()
   129 {
   129 {
   130     DPRINT << ": IN"; 
   130     DPRINT << ": IN"; 
   131     
   131     
   132     // Clean layout container, 
   132     // Layout manager item cleanup
   133     // layout manager handles layout item cleanup
   133     m_layoutManager->destroyObjects(); 
   134     for (int i=0; i < m_layout->count(); i++) {
       
   135         DPRINT << ": item(" << i << ") removed from layout";
       
   136         m_layout->removeAt(i);
       
   137         } 
       
   138     
   134     
   139     if (m_frameDrawer) {
   135     if (m_frameDrawer) {
   140         delete m_frameDrawer;
   136         delete m_frameDrawer;
   141         m_frameDrawer = NULL; 
   137         m_frameDrawer = NULL; 
   142     }
   138     }
   407         }       
   403         }       
   408     }
   404     }
   409     
   405     
   410     m_layoutManager->showAll(); 
   406     m_layoutManager->showAll(); 
   411     updateItemsVisibility(); 
   407     updateItemsVisibility(); 
   412 
       
   413     m_layout->invalidate();
       
   414     m_layout->activate(); 
   408     m_layout->activate(); 
   415     
   409 
   416     endChanges(); 
   410     endChanges(); 
   417     
   411     
   418     DPRINT << ": OUT";
   412     DPRINT << ": OUT";
   419 }
   413 }
   420 
   414