--- 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 ¶m)
+void IAUpdateResultsDialog::showResults(const TIAUpdateResultsInfo ¶m, 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;
}