void CWizIAPDialog::onProductsLoaded(const QList<CWizIAPProduct>& productList) { QTimer::singleShot(0, this, SLOT(stopWaitTimer())); setPurchaseAvailable(true); foreach (CWizIAPProduct product, productList) { if (product.id == WIZ_PRODUCT_MONTH) { ui->btn_month->setText(QString(tr("%1 / month")).arg(product.localizedPrice)); } else if (product.id == WIZ_PRODUCT_YEAR) { ui->btn_year->setText(QString(tr("%1 / year")).arg(product.localizedPrice)); } } QTimer::singleShot(0, this, SLOT(checkUnfinishedTransation())); }
bool PublishToMePlugin::cancelCurrentOperation() { stopWaitTimer(); m_redirects = 0; emit currentOperationCanceled(); return true; }