Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Anna Medonosová
Krita
Commits
76e2b76b
Commit
76e2b76b
authored
Jul 21, 2019
by
Ivan Yossi
👌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make generated gradient's names translatable
BUG:410034
parent
711e962d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
libs/widgets/KoResourceServerProvider.cpp
libs/widgets/KoResourceServerProvider.cpp
+3
-2
No files found.
libs/widgets/KoResourceServerProvider.cpp
View file @
76e2b76b
...
...
@@ -34,6 +34,7 @@
#include <resources/KoStopGradient.h>
#include "KoColorSpaceRegistry.h"
#include "KoResourcePaths.h"
#include "klocalizedstring.h"
#include <iostream>
using
namespace
std
;
...
...
@@ -54,7 +55,7 @@ public:
KoStopGradient
*
gradient
=
new
KoStopGradient
();
gradient
->
setType
(
QGradient
::
LinearGradient
);
gradient
->
setName
(
"Foreground to Transparent"
);
gradient
->
setName
(
i18n
(
"Foreground to Transparent"
)
)
;
stops
<<
KoGradientStop
(
0.0
,
KoColor
(
Qt
::
black
,
cs
))
<<
KoGradientStop
(
1.0
,
KoColor
(
QColor
(
0
,
0
,
0
,
0
),
cs
));
gradient
->
setStops
(
stops
);
...
...
@@ -65,7 +66,7 @@ public:
gradient
=
new
KoStopGradient
();
gradient
->
setType
(
QGradient
::
LinearGradient
);
gradient
->
setName
(
"Foreground to Background"
);
gradient
->
setName
(
i18n
(
"Foreground to Background"
)
)
;
stops
.
clear
();
stops
<<
KoGradientStop
(
0.0
,
KoColor
(
Qt
::
black
,
cs
))
<<
KoGradientStop
(
1.0
,
KoColor
(
Qt
::
white
,
cs
));
...
...
Write
Preview
Markdown
is supported
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