diff options
author | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-01-07 17:30:58 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-01-22 16:38:10 +0000 |
commit | fb19363e96e9c82f426829df2cbe74b065c760b4 (patch) | |
tree | 1a826ba20f75d7c85d99aae4177abd202ee9fa11 | |
parent | 4d86df930a77ee745cbec4066119c7f2e30a7da4 (diff) |
bringToFront: remove broken support for QStackedLayout
the code tried to make the widget current in the child layout instead
of the parent layout.
QStackedLayout is not supported by QtDesigner anyway, so just remove
the code.
Change-Id: I5696daee2fd655c6e42b365680a02d78c7c1258a
Reviewed-by: Luca Niccoli <lultimouomo@gmail.com>
Reviewed-by: Frederic Marchal <frederic.marchal@wowtechnology.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rw-r--r-- | src/linguist/linguist/formpreviewview.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/linguist/linguist/formpreviewview.cpp b/src/linguist/linguist/formpreviewview.cpp index b4e729c51..3e00b1f05 100644 --- a/src/linguist/linguist/formpreviewview.cpp +++ b/src/linguist/linguist/formpreviewview.cpp @@ -398,8 +398,6 @@ static void bringToFront(const TranslatableEntry &target) { for (QObject *obj = target.target.object; obj != 0; obj = obj->parent()) { if (QWidget *w = qobject_cast<QWidget *>(obj)) { - if (QStackedLayout *lay = qobject_cast<QStackedLayout *>(w->layout())) - lay->setCurrentWidget(w); #ifndef QT_NO_STACKEDWIDGET if (QStackedWidget *stack = qobject_cast<QStackedWidget *>(obj->parent())) stack->setCurrentWidget(w); |