void SwitchPage::switchToggled(bool toggle) { MMessageBox *msgBox = new MMessageBox(); if (toggle) msgBox->setText("The feature was enabled"); else msgBox->setText("The feature was disabled"); msgBox->appear(MDialog::DestroyWhenDone); }
void LoginSheet::showLoginSuccessfulAndDismiss() { MBasicSheetHeader *header = static_cast<MBasicSheetHeader*>(headerWidget()); header->setProgressIndicatorVisible(false); MMessageBox *messageBox = new MMessageBox; //% "Access Granted!" messageBox->setTitle(qtTrId("xx_wg_sheets_connection_success")); //% "You are now able to use the requested services." messageBox->setText(qtTrId("xx_wg_sheets_connection_success_text")); connect(messageBox, SIGNAL(disappeared()), SLOT(dismiss())); messageBox->appear(MSceneWindow::DestroyWhenDone); }
void SheetsPage::processFullscreenSaveSuccess() { if (!fullScreenPhotoSheet) return; MBasicSheetHeader *header = qobject_cast<MBasicSheetHeader*>(fullScreenPhotoSheet->headerWidget()); if (header) { header->setProgressIndicatorVisible(false); } MMessageBox *msg = new MMessageBox; //% "Save Completed!" msg->setTitle(qtTrId("xx_wg_sheets_save_completed")); //% "The photo was imported into your photo library, and is now accessible through the photo gallery viewer." msg->setText(qtTrId("xx_wg_sheets_save_completed_text")); connect(msg, SIGNAL(disappeared()), fullScreenPhotoSheet, SLOT(dismiss())); msg->appear(MSceneWindow::DestroyWhenDone); }