add --format switch for setting output color and use regex to match format pattern for sanity check before trigger sprintf.
e.g. kdialog --getcolor --format "%+3.7f %.4f %5f" in "%[flag][width][precision][length]<conversion specifier>"
BUG: 340399
cfeck |
add --format switch for setting output color and use regex to match format pattern for sanity check before trigger sprintf.
e.g. kdialog --getcolor --format "%+3.7f %.4f %5f" in "%[flag][width][precision][length]<conversion specifier>"
BUG: 340399
kdialog --getcolor --format "Qcolor(%#x, %+2.2lx, %#+3.3lx)"
Qcolor(0x6d, +60, +0x07b)
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Hi, @cfeck please take a look, thanks
This patch is updated almost according https://bugs.kde.org/show_bug.cgi?id=340399 except the following two.