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

Enum missmatch in qt6 QFileDialog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All

      Description

      There's an enum miss-match bug specific to QT6 between

      qtbase/src/widgets/dialogs/qfiledialog.h   and

      qtbase/src/gui/kernel/qplatformdialoghelper.h

      When creating QT6 from QT5 source, someone has removed  "DontUseSheet" and renumbered qfiledialog.h  but forgotten to renumber qplatformdialoghelper.h to match.

       

       

      qtbase/src/widgets/dialogs/qfiledialog.h QT5

       enum Option
      { ShowDirsOnly = 0x00000001, DontResolveSymlinks = 0x00000002, DontConfirmOverwrite = 0x00000004, #if QT_DEPRECATED_SINCE(5, 14) DontUseSheet Q_DECL_ENUMERATOR_DEPRECATED = 0x00000008, #endif DontUseNativeDialog = 0x00000010, ReadOnly = 0x00000020, HideNameFilterDetails = 0x00000040, DontUseCustomDirectoryIcons = 0x00000080 };

      qtbase/src/gui/kernel/qplatformdialoghelper.h QT5

       enum FileDialogOption{ ShowDirsOnly = 0x00000001, DontResolveSymlinks = 0x00000002, DontConfirmOverwrite = 0x00000004, #if QT_DEPRECATED_SINCE(5, 14) DontUseSheet Q_DECL_ENUMERATOR_DEPRECATED = 0x00000008, #endif DontUseNativeDialog = 0x00000010, ReadOnly = 0x00000020, HideNameFilterDetails = 0x00000040, DontUseCustomDirectoryIcons = 0x00000080 };

       

      qtbase/src/widgets/dialogs/qfiledialog.h QT6

       enum Option
      { ShowDirsOnly = 0x00000001, DontResolveSymlinks = 0x00000002, DontConfirmOverwrite = 0x00000004, DontUseNativeDialog = 0x00000008, ReadOnly = 0x00000010, HideNameFilterDetails = 0x00000020, DontUseCustomDirectoryIcons = 0x00000040 };

       

      qtbase/src/gui/kernel/qplatformdialoghelper.h QT6

      enum FileDialogOption
      { ShowDirsOnly = 0x00000001, DontResolveSymlinks = 0x00000002, DontConfirmOverwrite = 0x00000004, DontUseNativeDialog = 0x00000010, ReadOnly = 0x00000020, HideNameFilterDetails = 0x00000040, DontUseCustomDirectoryIcons = 0x00000080 }; 

       

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            mjsmithers Michael Smithers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes