Bugfix for #387 - revert to using heuristic mask on mac since automasking leaves 'holes' in the splash image.

git-svn-id: http://svn.osgeo.org/qgis/trunk@6128 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2006-11-27 02:05:59 +00:00
parent fdf9e31c7e
commit 54ddd76a73

View File

@ -458,7 +458,16 @@ int main(int argc, char *argv[])
}
else
{
#ifdef Q_OS_MACX
//on mac automasking as done below does not work (as of qt 4.2.1)
//so we do it the old way see bug #387
qDebug("setting mask for mac");
QPixmap myMaskPixmap(mySplashPath+QString("splash_mask.png"), 0, Qt::ThresholdDither | Qt::ThresholdAlphaDither | Qt::AvoidDither );
mypSplash->setMask( myMaskPixmap.createHeuristicMask() );
#else
//for win and linux we can just automask and png transparency areas will be used
mypSplash->setMask( myPixmap.mask() );
#endif
mypSplash->show();
}