Commit 0df13a8b authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Better indentation

parent 2469f05c
......@@ -200,7 +200,11 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
m_treeView->setModel(m_model);
m_treeView->installEventFilter(this);
m_treeView->setRootIsDecorated(false);
m_treeView->setIndentation(4);
if (m_treeView->style()) {
auto indent = m_treeView->style()->pixelMetric(QStyle::PM_TreeViewIndentation, nullptr, m_treeView);
m_treeView->setIndentation(indent / 4);
}
m_treeView->header()->setStretchLastSection(false);
m_treeView->header()->setSectionResizeMode(0, QHeaderView::Stretch);
......
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