summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2016-05-31 21:31:46 +0200
committerDavid Faure <[email protected]>2016-05-31 21:31:46 +0200
commit3d28f62956584b72528aea0e6416e49bb9d1d2f4 (patch)
treeef85b4f140e46d328c3f1e986f51d6f9bca8e41f
parentc90e11d7bdb21492c548cd3e5b502416153e360a (diff)
Add missing parent for child widget, which messed up tab order.
Yet another reason for explicit parents. Mixing explicit and implicit leads to a wrong tab order (children with explicit parent first, then reparented children).
-rw-r--r--src/texteditor/commonwidget/textfindreplacewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/texteditor/commonwidget/textfindreplacewidget.cpp b/src/texteditor/commonwidget/textfindreplacewidget.cpp
index 3e332fa..df1ae79 100644
--- a/src/texteditor/commonwidget/textfindreplacewidget.cpp
+++ b/src/texteditor/commonwidget/textfindreplacewidget.cpp
@@ -37,7 +37,7 @@ TextReplaceWidget::TextReplaceWidget(QWidget *parent)
const int marg = lay->margin();
lay->setContentsMargins(marg, 0, marg, 0);
- mReplace = new QLineEdit;
+ mReplace = new QLineEdit(this);
mReplace->setClearButtonEnabled(true);
lay->addWidget(mReplace);