We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent fdf9e31 commit 54ddd76Copy full SHA for 54ddd76
src/gui/main.cpp
@@ -458,7 +458,16 @@ int main(int argc, char *argv[])
458
}
459
else
460
{
461
+#ifdef Q_OS_MACX
462
+ //on mac automasking as done below does not work (as of qt 4.2.1)
463
+ //so we do it the old way see bug #387
464
+ qDebug("setting mask for mac");
465
+ QPixmap myMaskPixmap(mySplashPath+QString("splash_mask.png"), 0, Qt::ThresholdDither | Qt::ThresholdAlphaDither | Qt::AvoidDither );
466
+ mypSplash->setMask( myMaskPixmap.createHeuristicMask() );
467
+#else
468
+ //for win and linux we can just automask and png transparency areas will be used
469
mypSplash->setMask( myPixmap.mask() );
470
+#endif
471
mypSplash->show();
472
473
0 commit comments