Fix raising and lowering native widgets
Raising or lowering a native widget needs to raise or lower the associated platform window, too. Task-number: QTBUG-26344 Change-Id: Ib847d97df86857d92bcc4c9c0dd51219575d8db1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>bb10
parent
2246e48a76
commit
3812af8ad0
|
|
@ -670,7 +670,7 @@ void QWidgetPrivate::setFocus_sys()
|
|||
void QWidgetPrivate::raise_sys()
|
||||
{
|
||||
Q_Q(QWidget);
|
||||
if (q->isWindow()) {
|
||||
if (q->isWindow() || q->testAttribute(Qt::WA_NativeWindow)) {
|
||||
q->windowHandle()->raise();
|
||||
}
|
||||
}
|
||||
|
|
@ -678,7 +678,7 @@ void QWidgetPrivate::raise_sys()
|
|||
void QWidgetPrivate::lower_sys()
|
||||
{
|
||||
Q_Q(QWidget);
|
||||
if (q->isWindow()) {
|
||||
if (q->isWindow() || q->testAttribute(Qt::WA_NativeWindow)) {
|
||||
Q_ASSERT(q->testAttribute(Qt::WA_WState_Created));
|
||||
q->windowHandle()->lower();
|
||||
} else if (QWidget *p = q->parentWidget()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue