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
897e2743
Commit
897e2743
authored
Mar 06, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Mar 05, 2021
Browse files
Fix alignments
parent
217636f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitstatusmodel.cpp
View file @
897e2743
...
...
@@ -144,9 +144,9 @@ QVariant GitStatusModel::data(const QModelIndex &index, int role) const
return
QString
(
QString
::
fromUtf8
(
m_nodes
[
rootIndex
].
at
(
row
).
file
)
+
GitUtils
::
statusString
(
m_nodes
[
rootIndex
].
at
(
row
).
status
));
}
else
if
(
role
==
Qt
::
TextAlignmentRole
)
{
if
(
index
.
column
()
==
0
)
{
return
Qt
::
AlignLeft
;
return
(
int
)(
Qt
::
AlignLeft
|
Qt
::
AlignVCenter
)
;
}
else
{
return
Qt
::
AlignRight
;
return
(
int
)(
Qt
::
AlignRight
|
Qt
::
AlignVCenter
)
;
}
}
else
if
(
role
==
Qt
::
ForegroundRole
)
{
if
(
index
.
column
()
==
1
&&
rootIndex
>
0
)
{
...
...
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