Commit b8b318da authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.Navigator: Avoiding focus rectangle in Mac

parent 9d624732
......@@ -219,6 +219,7 @@ void IdItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, co
Q_UNUSED(model);
QLineEdit *lineEdit = static_cast<QLineEdit*>(editor);
m_TreeModel->setId(index,lineEdit->text());
lineEdit->clearFocus();
}
void IdItemDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
......
......@@ -48,6 +48,7 @@ NavigatorWidget::NavigatorWidget(QWidget* parent) :
m_treeView->setSelectionBehavior(QAbstractItemView::SelectRows);
m_treeView->header()->setStretchLastSection(false);
m_treeView->setDefaultDropAction(Qt::LinkAction);
m_treeView->setFocusPolicy(Qt::NoFocus);
QVBoxLayout *layout = new QVBoxLayout;
layout->setSpacing(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment