QSplashScreen: make all ctors use the same Qt::WindowFlags
One was setting FramelessWindowHint, the other didn't. Settle on setting it. [ChangeLog][QtWidgets][QSplashScreen] All constructors now implicitly set Qt::FramelessWindowHint, not just the (pixmap, flags) one. Change-Id: I5e3919acac80bf31c2c61fbade938ff319a6cea9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>bb10
parent
fe8e0da33e
commit
2ff0814aa2
|
|
@ -142,7 +142,7 @@ QSplashScreen::QSplashScreen(const QPixmap &pixmap, Qt::WindowFlags f)
|
|||
one. In that case pass the proper desktop() as the \a parent.
|
||||
*/
|
||||
QSplashScreen::QSplashScreen(QWidget *parent, const QPixmap &pixmap, Qt::WindowFlags f)
|
||||
: QWidget(*new QSplashScreenPrivate, parent, Qt::SplashScreen | f)
|
||||
: QWidget(*new QSplashScreenPrivate, parent, Qt::SplashScreen | Qt::FramelessWindowHint | f)
|
||||
{
|
||||
d_func()->pixmap = pixmap;
|
||||
setPixmap(d_func()->pixmap); // Does an implicit repaint
|
||||
|
|
|
|||
Loading…
Reference in New Issue