Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2914

Renaming of enums and their attributes

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Shiboken
    • None

      I'm trying to port a certain C++ project to PySide, and certain enums use `None` as an attribute, which raises syntax error in Python due to `None` being a keyword. E.g., `Update.None`.

      As for renaming of enums themselves, I need this to replicate Qt naming scheme, to convert acronyms to generic words, etc. E.g., `IMEInteraction` --> `ImeInteraction`,

      I've tried using `<enum-type> <modify-field name="None" rename="Nil" /> </enum-type>`, but it didn't work, not to mention that `<enum-type />` doesn't have an attribute to rename enum. Lack of such features forces me to create custom version of the file with these enums, which is error-prone.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            temporaryreptile Anon Kun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes