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

Renaming of enums and their attributes

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes