1. 10 Mar, 2018 - 2 commits
    • Eric Lemanissier's avatar
      add missing tests of rvalue overloads for QVarLengthArray and QVector · 1e272199
      Eric Lemanissier authored
      they were missing in dd58ddd5
      
      
      
      Change-Id: I52a2f855ead7716f8fe887524b27d4bd258f43d3
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      v5.11.0-beta2
      1e272199
    • Nils Jeisecke's avatar
      Allow use of template class instances inheriting from a Q_GADGET in Qml · fee8944c
      Nils Jeisecke authored
      
      The Q_GADGET macro cannot be used in templates. It can however be useful
      to derive a template class from a Q_GADGET enabled base class to benefit
      from type safety features in C++ (e.g. the class could represent an id
      or handle for some C++ type).
      
      For proper wrapping of a QVariant with a gadget value in a QJSValue, the
      QMetaType::IsGadget flag must be set for the registered template
      instance type - which does not happen prior to the fix because
      IsGadgetHelper requires qt_check_for_QGADGET_macro to be defined in the
      registered class but not in an ancestor class - in other words: The
      class must declare Q_GADGET.
      
      To overcome this, IsGadgetHelper/IsPointerToGadgetHelper can now
      differentiate between a Q_GADGET flagged class (allowing
      automatic registration) and a derived class, e.g. a template class
      (forcing Q_DECLARE_METATYPE to be used explicitly).
      
      [ChangeLog][QtCore][QMetaObject] It is now possible to use template
      class instances inheriting from a Q_GADGET in Qml
      
      Task-number: QTBUG-66744
      Change-Id: I7632ad45cff79fa422b3f852ca0b963f35fab155
      Reviewed-by: default avatarOlivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
      fee8944c
  2. 09 Mar, 2018 - 3 commits
  3. 08 Mar, 2018 - 2 commits
  4. 07 Mar, 2018 - 15 commits
  5. 06 Mar, 2018 - 6 commits
  6. 05 Mar, 2018 - 10 commits
  7. 04 Mar, 2018 - 1 commit
  8. 03 Mar, 2018 - 1 commit