Skip to content
GitLab
Menu
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
7f51ceae
Commit
7f51ceae
authored
Mar 07, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Mar 12, 2021
Browse files
Minimum section size
parent
0c9fe2eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletree.cpp
View file @
7f51ceae
...
...
@@ -46,7 +46,7 @@ public:
{
}
void
paint
(
QPainter
*
painter
,
const
QStyleOptionViewItem
&
option
,
const
QModelIndex
&
index
)
const
void
paint
(
QPainter
*
painter
,
const
QStyleOptionViewItem
&
option
,
const
QModelIndex
&
index
)
const
override
{
QStyledItemDelegate
::
paint
(
painter
,
option
,
index
);
...
...
@@ -187,6 +187,7 @@ void KateFileTree::setModel(QAbstractItemModel *model)
header
()
->
hide
();
header
()
->
setStretchLastSection
(
false
);
header
()
->
setSectionResizeMode
(
0
,
QHeaderView
::
Stretch
);
header
()
->
setMinimumSectionSize
(
8
);
header
()
->
setSectionResizeMode
(
1
,
QHeaderView
::
Fixed
);
header
()
->
resizeSection
(
1
,
16
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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