Skip to content
Snippets Groups Projects
Commit b8b318da authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.Navigator: Avoiding focus rectangle in Mac

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