diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2015-10-19 21:48:51 +0300 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2015-10-25 21:40:10 +0300 |
commit | 73f6051d3528d7ebf0c7a88acb684c8000f0062a (patch) | |
tree | 98fb027363cea51562aeda1a838cb8b41d3ca7a8 /scripts/generate-ApplicationPalette-class.py | |
parent | d8889f8bde96d1d998e5c25af6886aede5986889 (diff) |
Modify generator for ApplicationPalette.h to fix warnings in that file
Diffstat (limited to 'scripts/generate-ApplicationPalette-class.py')
-rwxr-xr-x | scripts/generate-ApplicationPalette-class.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate-ApplicationPalette-class.py b/scripts/generate-ApplicationPalette-class.py index 207156b2b..05862f7b2 100755 --- a/scripts/generate-ApplicationPalette-class.py +++ b/scripts/generate-ApplicationPalette-class.py @@ -51,7 +51,7 @@ role_multisetter_template=""" m_%(prop)s = brush; paletteupdate_template =""" if (m_%(prop)s) { - palette.setBrush(QPalette::%(group)s, QPalette::%(role)s, *m_%(prop)s); + newPalette.setBrush(QPalette::%(group)s, QPalette::%(role)s, *m_%(prop)s); } """ @@ -121,4 +121,4 @@ if __name__ == "__main__": add_role_group_property(variables, role, group) - open(target, "w").write(template % variables)
\ No newline at end of file + open(target, "w").write(template % variables) |