Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134078

Rename Type enums to be elaborate

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 7.0 (Next Major Release)
    • Core: Other
    • None
    • All

    Description

      The Type enums of many Qt classes are a poor naming consistency, even if such naming is kept for historical reasons and tied to a C++ convention.

      What is preventing us from renaming those Type enums for the next major release of Qt 7.0, so that those enums are elaborate and self-explanatory as to what they are suppose to represent?

      For example, the QEasingCurve class has an enum named Type. Renaming this enum to CurveType would make it so much more evident as to what the enum represents.

      Also, QEvent.Type would be more evident by it being QEvent.EventType.

      And so on, and so on...

      This is just a suggestion for Qt 7.0. Plenty of time to do it, if you decide it is worth the change, and plenty of time to document the enum name changes.

      I know this is too much work, and since programmers are lazy, this will never see the light of day, especially since you rather stick to a stubbornly stupid C++ convention. I just threw this out there, because I am the only one in this world who cares about such things.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            pedantichacker BoĊĦtjan Mejak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes