diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-12-30 09:17:15 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-12-30 09:17:15 (GMT) |
commit | bff7af0b3dbf0fd57848e6655206fe8041abf478 (patch) | |
tree | 4b47e6db545fb3b4a06e305da797a316386b29a3 /src/gui | |
parent | a50402893bd2d8bda37fc3ef2da3d8326445010a (diff) | |
parent | 89866e1112bba004847573c5494aa3b6ec75049f (diff) | |
download | Qt-bff7af0b3dbf0fd57848e6655206fe8041abf478.zip Qt-bff7af0b3dbf0fd57848e6655206fe8041abf478.tar.gz Qt-bff7af0b3dbf0fd57848e6655206fe8041abf478.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
tst_qmessagebox: fix `about' test on mac
tst_qmessagebox: make the failure message better for detailsButtonText
tst_qmessagebox: simulate key events more robustly
Prevented infinite loop in QMoviePrivate::next().
Added int overloads to QPoint operator* and operator*=.
tst_qmessagebox: add debug to know why it fails
QMessageBox wrong Show/Hide Details button label
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/dialogs/qmessagebox.cpp | 2 | ||||
-rw-r--r-- | src/gui/image/qmovie.cpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/dialogs/qmessagebox.cpp b/src/gui/dialogs/qmessagebox.cpp index 224a176..af9616d 100644 --- a/src/gui/dialogs/qmessagebox.cpp +++ b/src/gui/dialogs/qmessagebox.cpp @@ -1925,7 +1925,7 @@ void QMessageBoxPrivate::retranslateStrings() { #ifndef QT_NO_TEXTEDIT if (detailsButton) - detailsButton->setLabel(detailsText->isHidden() ? HideLabel : ShowLabel); + detailsButton->setLabel(detailsText->isHidden() ? ShowLabel : HideLabel); #endif } diff --git a/src/gui/image/qmovie.cpp b/src/gui/image/qmovie.cpp index 911a2b5..eb139fa 100644 --- a/src/gui/image/qmovie.cpp +++ b/src/gui/image/qmovie.cpp @@ -381,10 +381,14 @@ QFrameInfo QMoviePrivate::infoForFrame(int frameNumber) QPixmap aPixmap = QPixmap::fromImage(anImage); int aDelay = reader->nextImageDelay(); return QFrameInfo(aPixmap, aDelay); - } else { + } else if (frameNumber != 0) { // We've read all frames now. Return an end marker haveReadAll = true; return QFrameInfo::endMarker(); + } else { + // No readable frames + haveReadAll = true; + return QFrameInfo(); } } |