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
SDK
KDE Development Scripts
Commits
63cc2fd5
Commit
63cc2fd5
authored
Sep 10, 2019
by
David Faure
Browse files
Fix KGuiItem arguments (second arg of ki18nc, icon name...) being lost
parent
9e3e400a
Changes
1
Hide whitespace changes
Inline
Side-by-side
kf5/convert-kdialog.pl
View file @
63cc2fd5
...
...
@@ -579,15 +579,13 @@ foreach my $file (@ARGV) {
warn
"
found setButtonGuiItem
$args
\n
";
my
$extract_args_regexp
=
qr/
^\(([^,]*) # button
,\s*(
[^,]*)
#
state
(.*)$ # after
,\s*(
.*)
#
KGuiItem argument
\)$
/
x
;
my
$localLeft
=
removePrivateVariable
(
$left
);
if
(
my
(
$button
,
$menuName
)
=
$args
=~
$extract_args_regexp
)
{
$button
=~
s, ,,g
;
#$menuName =~ s, ,,g;
$menuName
=~
s,\),,g
;
$button
=~
s,^KDialog::,,
;
$needKGuiItem
=
1
;
...
...
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