[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [trojita] src/Gui: show widget after reparenting it
From: Thomas_Lübking <thomas.luebking () gmail ! com>
Date: 2016-03-18 10:34:45
Message-ID: E1agrjx-0004hG-Ou () scm ! kde ! org
[Download RAW message or body]
Git commit f90a8ff7c25ea2825c3d2cb714ba6843058f2793 by Thomas Lübking.
Committed on 13/03/2016 at 22:52.
Pushed by gerrit into branch 'master'.
show widget after reparenting it
::addingOneWidget creates an unparented or foreign widget,
QLayout::addWidget() will implicitly reparent it
to the layouts parenting widget and reparenting widgets
implicitly hides them (don't ask - it's always been like that)
::adjustSize() simply skips hidden children and whatever finally shows
the widget does not activate the layout
BUG: 360481
Change-Id: Ia7f7af4efd2c631bb3a5a9c0ad7f8e67d426138f
M +1 -0 src/Gui/PartWidget.cpp
http://commits.kde.org/trojita/f90a8ff7c25ea2825c3d2cb714ba6843058f2793
diff --git a/src/Gui/PartWidget.cpp b/src/Gui/PartWidget.cpp
index e8e0f1c..41e2f24 100644
--- a/src/Gui/PartWidget.cpp
+++ b/src/Gui/PartWidget.cpp
@@ -309,6 +309,7 @@ void AsynchronousPartWidget::buildWidgets()
Q_ASSERT(anotherPart.isValid());
QWidget *res = addingOneWidget(anotherPart, filteredForEmbedding(m_options));
layout()->addWidget(res);
+ res->show();
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic