1. Nov 07, 2014
    • Kai Koehne's avatar
      Inspector: Do not assert when trying to stream QModelIndex · efa81f83
      Kai Koehne authored
      
      Some QVariant's like QModelIndex cannot be streamed in a meaningful way:
      QDataType::save() will return false for them. However, this leads to a
      qWarning and Q_ASSERT in QVariant::operator<<().
      
      To prevent this we're calling QDataType::save() manually beforehand. We
      however throw away the result if it succeeds, and still call
      QVariant::operator<<() to get the benefits of the QDataStream version
      handling.
      
      The alternatives would be to make QVariant::operator<<() not assert,
      or blacklist all known types with problems manually. Both seem to
      be difficult though ...
      
      Change-Id: I4f5fe6d5a3a076c24fbc73371a4d12d720de53da
      Task-number: QTBUG-42438
      Reviewed-by: default avatarUlf Hermann <ulf.hermann@theqtcompany.com>
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      efa81f83
  2. Sep 17, 2014
    • Simon Hausmann's avatar
      Fix mapping of JS objects/arrays to C++ · 3dbe05f6
      Simon Hausmann authored
      
      [ChangeLog][QtQml][Important Behavior Changes] When a JavaScript object/array
      is passed to C++ through a QVariant, the engine no longer immediately converts
      the object recursively into a QVariantMap or QVariantList but instead stores
      a QJSValue in the QVariant. This prevents a loss of data when the JS object
      contains non-primitive types such as function objects for example. Code that
      expects the variant type to be exactly QVariant::Map or QVariant::List may
      need to be adapted. Registered conversion functions however ensure that code
      that merely calls toMap() or toList() continues to work.
      
      Task-number: QTBUG-40431
      Change-Id: I1dbc1d5f8e78ad28bb62db3681b9a0b34557e7f5
      Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
      3dbe05f6
  3. Aug 25, 2014
  4. Feb 10, 2014
    • Ulf Hermann's avatar
      Unify initial waiting of debug services · 4cc230ad
      Ulf Hermann authored
      
      The debug services generally behave in one of two ways when initializing:
      Either they block the initializing thread until some configuration is
      passed over the network or they just go on. By introducing a generalized
      configurable debug service the various ways of waiting on initialization
      are cleaned up. The API defined for it also allows for engine-specific
      initialization.
      
      Change-Id: Id5685ef17d2a7eb1222629f7caa5ec53076d47b2
      Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
      4cc230ad
  5. Feb 05, 2014
  6. Jan 22, 2014
  7. Sep 26, 2013
  8. Jul 03, 2013
    • Simon Hausmann's avatar
      Get rid of the signal expression rewriter · 06eaeb0a
      Simon Hausmann authored
      
      This replaces the entire rewriter with more or less:
      
      expressionToEval = "(function(<named params here>) { " + expr + " } )"
      
      This also fixes crashes at run-time when the signal rewriter was
      executed from the loader thread and tried to use a v4 identifier
      hash with the same engine that's also in the main thread.
      
      Change-Id: Ib1e4927d330706a593411fbff64ed3da1e23d0e0
      Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
      06eaeb0a
  9. May 24, 2013
  10. May 07, 2013
  11. Jan 10, 2013
  12. Sep 23, 2012
  13. Aug 27, 2012
  14. Aug 23, 2012
  15. Jun 12, 2012
    • Kent Hansen's avatar
      Adapt to connection-related changes in qtbase · c421281a
      Kent Hansen authored
      
      The QQmlData hooks signalEmitted() and receivers() now receive the
      index in the signal index range (i.e., excluding non-signal methods).
      This was done to avoid Q(Meta)Object having to compute the class's
      method offset; the signal offset should be sufficient for everyone.
      
      This required adapting QQmlNotifier, QQmlBoundSignal,
      QQmlPropertyCache and friends to use the signal index range whenever
      a property's notify signal is involved in the internal connection
      lists and property captures.
      
      Using the signal index range also reduces the memory used for
      NotifyList::notifies, since useless entries for non-signal methods
      will no longer be created.
      
      Change-Id: I62872fbea5a1f829b8b03bae3fc1e6acd84cf886
      Reviewed-by: default avatarAaron Kennedy <aaron.kennedy@nokia.com>
      c421281a
  16. May 25, 2012
  17. May 21, 2012
  18. May 20, 2012
  19. May 12, 2012
  20. May 09, 2012
  21. May 01, 2012
  22. Apr 26, 2012
  23. Apr 18, 2012
  24. Mar 29, 2012
  25. Mar 28, 2012
  26. Mar 26, 2012
  27. Mar 19, 2012
  28. Mar 15, 2012
  29. Mar 13, 2012
    • Kent Hansen's avatar
      Adapt to Qt5 meta-object changes · 4dd4c442
      Kent Hansen authored
      
      QMetaMethod::signature() has been renamed to methodSignature(), and
      it now returns a QByteArray. Also, the new function
      QMetaMethod::isValid() should be used to determine whether a method
      is valid, instead of relying on signature() returning a 0 pointer.
      
      Where it makes sense, the existing code that was using signature()
      and parameterTypes() has been changed to use the new API
      QMetaMethod::name(), parameterCount(), and parameterType(int).
      
      Also, in the new meta-object revision (7), the QMetaObject stringdata
      member is now of type QByteArrayData*. QFastMetaBuilder will be
      ported to generate the new format, but for now it's sufficient to
      reinterpret_cast the stringdata assignment to keep it compiling.
      
      Change-Id: Ie340ef17bcebc3afa4aae6450dfe2d06e4d881a4
      Reviewed-by: default avatarAaron Kennedy <aaron.kennedy@nokia.com>
      4dd4c442
    • Kai Koehne's avatar
      Debugger: Use QStringLiteral where appropriate · fd1e8c80
      Kai Koehne authored
      
      Change-Id: I5c33113783834ef0c7292f5f19f12d8c68f42141
      Reviewed-by: default avatarAurindam Jana <aurindam.jana@nokia.com>
      fd1e8c80
  30. Mar 07, 2012
  31. Feb 24, 2012
  32. Feb 21, 2012
  33. Jan 30, 2012
  34. Jan 23, 2012
  35. Jan 16, 2012
  36. Jan 05, 2012