Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23945 Qt 5 on Mac OS X starter tasks
  3. QTBUG-23946

Improve Qt-in-namespace implementation in the Cocoa platform plugin

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • P1: Critical
    • 5.2.0
    • Other
    • None
    • c886491ad07a3bb16ef472614db37bf1f8a94586

    Description

      Qt supports wrapping all library code in a C++ namespace using the -qtnamespace configure option. Objective-C++ does not support namespaces.

      In order to make this work we decorate Qt symbol usage with macros:

      QT_MANGLE_NAMESPACE(QCocoaMenuLoader)
      QT_PREPEND_NAMESPACE(QFileDialogOptions::FileMode)

      However, the Objective-C has a well-hidden feature that might help us: @compatibility_alias. See http://developer.apple.com/library/mac/#documentation/DeveloperTools/gcc-4.0.1/gcc/compatibility_005falias.html

      Investigate if and where @compatibility_alias can be used instead of the macros.

      Attachments

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

        Activity

          People

            rperier Romain Perier
            sorvig Morten Sørvig
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes