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
92406080
Commit
92406080
authored
Feb 08, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Feb 08, 2021
Browse files
Fix font sizes for windows
parent
cce8a909
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/branchesdialog.cpp
View file @
92406080
...
...
@@ -95,10 +95,11 @@ public:
auto
type
=
(
GitUtils
::
RefType
)
index
.
data
(
BranchesDialogModel
::
RefType
).
toInt
();
using
RefType
=
GitUtils
::
RefType
;
const
auto
fontSz
=
option
.
font
.
pointSize
();
name
=
QStringLiteral
(
"<span style=
\"
font-size:%1pt;
\"
>"
).
arg
(
fontSz
)
+
name
+
QStringLiteral
(
"</span>"
);
if
(
type
==
RefType
::
Head
)
{
name
.
append
(
QStringLiteral
(
" <span style=
\"
color:gray; font-size:%1pt;
\"
>local</span>"
).
arg
(
fontSz
));
name
.
append
(
QStringLiteral
(
" <span style=
\"
color:gray; font-size:%1pt;
\"
>local</span>"
).
arg
(
fontSz
-
1
));
}
else
if
(
type
==
RefType
::
Remote
)
{
name
.
append
(
QStringLiteral
(
" <span style=
\"
color:gray; font-size:%1pt;
\"
>remote</span>"
).
arg
(
fontSz
));
name
.
append
(
QStringLiteral
(
" <span style=
\"
color:gray; font-size:%1pt;
\"
>remote</span>"
).
arg
(
fontSz
-
1
));
}
/*else if (type == RefType::Tag) {
name.append(QStringLiteral(" <span style=\"color:gray; font-size:%1pt;\">tag at %2</span>").arg(fontSz));
} */
...
...
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