Hi,
I'm having a strange problem with Maemo5ShowProgressIndicator. My code
looks like this:

    QMessageBox::StandardButton reply;
    reply = QMessageBox::warning(this, tr("Warning!"),
                                 QMessageBox::Yes | QMessageBox::No);
    if (reply == QMessageBox::Yes) {
        QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
        // do something...
        QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
    }

I get no progress indicator with the previous code. However, when I
take it out from the IF statement, it does work. Looking like this:

    QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
    QMessageBox::StandardButton reply;
    reply = QMessageBox::warning(this, tr("Warning!"),
                                 QMessageBox::Yes | QMessageBox::No);
    if (reply == QMessageBox::Yes) {
        // do something...
        QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
    }

But of course this way the indicator starts too early or shouldn't
start at all. Am I doing something wrong?

Cheers,

Sascha
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to