QWidget: Apply window opacity set before show.
Task-number: QTBUG-33078 Change-Id: Id9111f223a9dc58c88b072c52e36d42db450573a Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>bb10
parent
74a153e4b8
commit
4ef8144dd6
|
|
@ -900,6 +900,8 @@ void QWidgetPrivate::createTLSysExtra()
|
|||
extra->topextra->window->setMinimumSize(QSize(extra->minw, extra->minh));
|
||||
if (extra->maxw != QWIDGETSIZE_MAX || extra->maxh != QWIDGETSIZE_MAX)
|
||||
extra->topextra->window->setMaximumSize(QSize(extra->maxw, extra->maxh));
|
||||
if (extra->topextra->opacity != 255 && q->isWindow())
|
||||
extra->topextra->window->setOpacity(qreal(extra->topextra->opacity) / qreal(255));
|
||||
#ifdef Q_OS_WIN
|
||||
// Pass on native parent handle for Widget embedded into Active X.
|
||||
const QVariant activeXNativeParentHandle = q->property(activeXNativeParentHandleProperty);
|
||||
|
|
|
|||
Loading…
Reference in New Issue