iaupdate/IAD/ui/src/iaupdateresultsdialog.cpp
changeset 42 d17dc5398051
parent 33 8110bf1194d1
child 44 329d304c1aa1
--- a/iaupdate/IAD/ui/src/iaupdateresultsdialog.cpp	Thu May 27 12:58:35 2010 +0300
+++ b/iaupdate/IAD/ui/src/iaupdateresultsdialog.cpp	Fri Jun 11 13:45:18 2010 +0300
@@ -38,20 +38,20 @@
 {
 }
 
-void IAUpdateResultsDialog::showResults(const TIAUpdateResultsInfo &param)
+void IAUpdateResultsDialog::showResults(const TIAUpdateResultsInfo &param, QObject* receiver, const char* member )
 {
     QString buf;
     constructText(param,buf);
-    HbDialog dialog;
-    HbTextItem *text = new HbTextItem(&dialog);
+    HbDialog *dialog = new HbDialog;
+    HbTextItem *text = new HbTextItem(dialog);
     text->setFontSpec(HbFontSpec(HbFontSpec::Primary));
     text->setText(buf);
-    dialog.setContentWidget(text);
+    dialog->setContentWidget(text);
     HbAction *primaryAction = new HbAction("Ok");    
-    dialog.setPrimaryAction(primaryAction);
-    dialog.setTimeout(HbPopup::NoTimeout);
-    dialog.show();
-    //dialog.exec();    
+    dialog->addAction(primaryAction);
+    dialog->setTimeout(HbPopup::NoTimeout);
+    dialog->setAttribute(Qt::WA_DeleteOnClose);
+    dialog->open(receiver, member);
     return;  
 }