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
Utilities
Kate
Commits
9db52a90
Commit
9db52a90
authored
Mar 15, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Mar 18, 2022
Browse files
Git widget: all columns should focus
parent
e96b5206
Pipeline
#151964
passed with stage
in 2 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.cpp
View file @
9db52a90
...
...
@@ -80,13 +80,6 @@ public:
initStyleOption
(
&
options
,
index
);
painter
->
save
();
// paint background
if
(
option
.
state
&
QStyle
::
State_Selected
)
{
painter
->
fillRect
(
option
.
rect
,
option
.
palette
.
highlight
());
}
else
{
painter
->
fillRect
(
option
.
rect
,
option
.
palette
.
base
());
}
options
.
text
=
QString
();
// clear old text
options
.
widget
->
style
()
->
drawControl
(
QStyle
::
CE_ItemViewItem
,
&
options
,
painter
,
options
.
widget
);
...
...
@@ -280,6 +273,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
m_treeView
->
setModel
(
proxy
);
m_treeView
->
installEventFilter
(
this
);
m_treeView
->
setRootIsDecorated
(
false
);
m_treeView
->
setAllColumnsShowFocus
(
true
);
if
(
m_treeView
->
style
())
{
auto
indent
=
m_treeView
->
style
()
->
pixelMetric
(
QStyle
::
PM_TreeViewIndentation
,
nullptr
,
m_treeView
);
...
...
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