QWidget: Propagate window file path after create
Task-number: QTBUG-63340 Change-Id: Ic21964a33ee2910200627fe8a8c8ec2454e2e20c Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
421df7570b
commit
c3aa422df6
@ -1372,6 +1372,8 @@ void QWidget::create(WId window, bool initializeWindow, bool destroyOldWindow)
|
|||||||
d->setWindowIconText_helper(d->topData()->iconText);
|
d->setWindowIconText_helper(d->topData()->iconText);
|
||||||
if (isWindow() && !d->topData()->caption.isEmpty())
|
if (isWindow() && !d->topData()->caption.isEmpty())
|
||||||
d->setWindowTitle_helper(d->topData()->caption);
|
d->setWindowTitle_helper(d->topData()->caption);
|
||||||
|
if (isWindow() && !d->topData()->filePath.isEmpty())
|
||||||
|
d->setWindowFilePath_helper(d->topData()->filePath);
|
||||||
if (windowType() != Qt::Desktop) {
|
if (windowType() != Qt::Desktop) {
|
||||||
d->updateSystemBackground();
|
d->updateSystemBackground();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user