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

Qt 5 to-do in Mac Cocoa platform plugin

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.0.0 Beta 1
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      macOS
    • Technical Risk:
      Normal

      Description

      qtbase/src/plugins/platforms/cocoa/qmacclipboard.mm contains the following comment, presumably to indicate something that needs fixing for Qt 5.0.0:

      qmacclipboard.mm
      #if 0
                          //### Grrr, why didn't I put in a virtual int QMacPasteboardMime::count()? --Sam
                          const int numItems = c->convertFromMime(mimeType, mimeData, flavor).size();
      #else
                          int numItems = 1; //this is a hack but it is much faster than allowing conversion above
                          if (c->convertorName() == QLatin1String("FileURL"))
                              numItems = mime_src->urls().count();
      #endif
      

      If this is not going to be fixed before Qt 5.0.0 is released (and thus not for 5.x at all, due to binary-compatibility promises), this code should be either cleaned up or marked as a Qt 6 to-do.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              sorvig Morten Sørvig
              Reporter:
              jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes