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
c98b06a5
Commit
c98b06a5
authored
Jan 06, 2021
by
Christoph Cullmann
🐮
Browse files
try to fixup column resizing a bit
parent
1dec9c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/katequickopen.cpp
View file @
c98b06a5
...
...
@@ -236,14 +236,6 @@ void KateQuickOpen::update()
{
m_base_model
->
refresh
();
m_listView
->
resizeColumnToContents
(
0
);
// If we have a very long file name we restrict the size of the first column
// to take at most half of the space. Otherwise it would look odd.
int
colw0
=
m_listView
->
header
()
->
sectionSize
(
0
);
// file name
int
colw1
=
m_listView
->
header
()
->
sectionSize
(
1
);
// file path
if
(
colw0
>
colw1
)
{
m_listView
->
setColumnWidth
(
0
,
(
colw0
+
colw1
)
/
2
);
}
reselectFirst
();
}
...
...
Christoph Cullmann
🐮
@cullmann
mentioned in merge request
!167 (merged)
·
Jan 06, 2021
mentioned in merge request
!167 (merged)
mentioned in merge request !167
Toggle commit list
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