Skip to content

Commit d712f7f

Browse files
bjornJarek Kobus
authored and
Jarek Kobus
committed
Set the tree widget as focus proxy of the tree property browser
Makes the focus go to the tree widget when set on the property browser, since it's not very helpful for it to stay on the property browser widget. Change-Id: I7b2a686e37d7a2693ec98133f3a51743aadf7cb4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
1 parent 8fd81b2 commit d712f7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qtpropertybrowser/src/qttreepropertybrowser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ void QtTreePropertyBrowserPrivate::init(QWidget *parent)
471471
m_treeWidget->setEditorPrivate(this);
472472
m_treeWidget->setIconSize(QSize(18, 18));
473473
layout->addWidget(m_treeWidget);
474+
parent->setFocusProxy(m_treeWidget);
474475

475476
m_treeWidget->setColumnCount(2);
476477
QStringList labels;

0 commit comments

Comments
 (0)