Commit 9db52a90 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Git widget: all columns should focus

parent e96b5206
Pipeline #151964 passed with stage
in 2 minutes and 44 seconds
......@@ -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);
......
Supports Markdown
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