mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-06 03:27:30 +00:00
Fix legacy width and security level getters/setters in Qt backend
Previously, width is option 2 and security level is option 1.
Seems like in 54947fb435, the definitions
swapped and that breaks the legacy Qt application using setWidth() and
setSecurityLevel().
I know a better solution is make Qt application use setOption2() and
setOption1() respectively, but it's good to keep these legacy APIs
backward-compatible.
This commit is contained in:
@@ -238,9 +238,9 @@ public:
|
||||
|
||||
|
||||
/* Legacy property getters/setters */
|
||||
void setWidth(int width); /* `symbol->option_1` */
|
||||
void setWidth(int width); /* `symbol->option_2` */
|
||||
int width() const;
|
||||
void setSecurityLevel(int securityLevel); /* `symbol->option_2` */
|
||||
void setSecurityLevel(int securityLevel); /* `symbol->option_1` */
|
||||
int securityLevel() const;
|
||||
void setPdf417CodeWords(int pdf417CodeWords); /* No-op */
|
||||
int pdf417CodeWords() const;
|
||||
|
||||
Reference in New Issue
Block a user