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
837b1cae
Commit
837b1cae
authored
Feb 08, 2021
by
Waqar Ahmed
Browse files
Use Qt::DisplayRole always to make sure row height is good
parent
48b02c7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/project/branchesdialogmodel.cpp
View file @
837b1cae
...
...
@@ -37,7 +37,7 @@ QVariant BranchesDialogModel::data(const QModelIndex &idx, int role) const
}
const
GitUtils
::
Branch
&
branch
=
m_modelEntries
.
at
(
idx
.
row
());
if
(
role
==
Role
::
DisplayName
)
{
if
(
role
==
Role
::
DisplayName
||
role
==
Qt
::
DisplayRole
)
{
return
branch
.
name
;
}
else
if
(
role
==
Role
::
Score
)
{
return
branch
.
score
;
...
...
kate/quickopen/katequickopenmodel.cpp
View file @
837b1cae
...
...
@@ -44,6 +44,7 @@ QVariant KateQuickOpenModel::data(const QModelIndex &idx, int role) const
const
ModelEntry
&
entry
=
m_modelEntries
.
at
(
idx
.
row
());
switch
(
role
)
{
case
Qt
::
DisplayRole
:
case
Role
::
FileName
:
return
entry
.
fileName
;
case
Role
::
FilePath
:
...
...
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