comparison src/pngplayer.cpp @ 7:c11fe56aa4a2

Disable error if an image cannot be loaded
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 25 Mar 2015 14:25:10 +0100
parents 107e435cb569
children ac4db84f1d9d
comparison
equal deleted inserted replaced
6:031ce03cfdf2 7:c11fe56aa4a2
98 const QDateTime& timestamp) { 98 const QDateTime& timestamp) {
99 QPixmap pic(mBaseDir.filePath(fileName)); 99 QPixmap pic(mBaseDir.filePath(fileName));
100 /* If this is too slow we could use a pixmap cache here and do 100 /* If this is too slow we could use a pixmap cache here and do
101 * some intelligent preloading */ 101 * some intelligent preloading */
102 if (pic.isNull()) { 102 if (pic.isNull()) {
103 emit error(tr("Failed to load picture: '%1'").arg(fileName)); 103 // emit error(tr("Failed to load picture: '%1'").arg(fileName));
104 return; 104 return;
105 } 105 }
106 mPNGLabel->setPixmap(pic); 106 mPNGLabel->setPixmap(pic);
107 updatePositions(current, max, timestamp); 107 updatePositions(current, max, timestamp);
108 } 108 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)