Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b8b318da
Commit
b8b318da
authored
Mar 11, 2010
by
Christiaan Janssen
Browse files
QmlDesigner.Navigator: Avoiding focus rectangle in Mac
parent
9d624732
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp
View file @
b8b318da
...
...
@@ -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
...
...
src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp
View file @
b8b318da
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment