36 |
36 |
37 IAUpdateResultsDialog::~IAUpdateResultsDialog() |
37 IAUpdateResultsDialog::~IAUpdateResultsDialog() |
38 { |
38 { |
39 } |
39 } |
40 |
40 |
41 void IAUpdateResultsDialog::showResults(const TIAUpdateResultsInfo ¶m) |
41 void IAUpdateResultsDialog::showResults(const TIAUpdateResultsInfo ¶m, QObject* receiver, const char* member ) |
42 { |
42 { |
43 QString buf; |
43 QString buf; |
44 constructText(param,buf); |
44 constructText(param,buf); |
45 HbDialog dialog; |
45 HbDialog *dialog = new HbDialog; |
46 HbTextItem *text = new HbTextItem(&dialog); |
46 HbTextItem *text = new HbTextItem(dialog); |
47 text->setFontSpec(HbFontSpec(HbFontSpec::Primary)); |
47 text->setFontSpec(HbFontSpec(HbFontSpec::Primary)); |
48 text->setText(buf); |
48 text->setText(buf); |
49 dialog.setContentWidget(text); |
49 dialog->setContentWidget(text); |
50 HbAction *primaryAction = new HbAction("Ok"); |
50 HbAction *primaryAction = new HbAction("Ok"); |
51 dialog.setPrimaryAction(primaryAction); |
51 dialog->addAction(primaryAction); |
52 dialog.setTimeout(HbPopup::NoTimeout); |
52 dialog->setTimeout(HbPopup::NoTimeout); |
53 dialog.show(); |
53 dialog->setAttribute(Qt::WA_DeleteOnClose); |
54 //dialog.exec(); |
54 dialog->open(receiver, member); |
55 return; |
55 return; |
56 } |
56 } |
57 |
57 |
58 // ----------------------------------------------------------------------------- |
58 // ----------------------------------------------------------------------------- |
59 // IAUpdateResultsDialog::constructText |
59 // IAUpdateResultsDialog::constructText |