1. 25 Oct, 2016 1 commit
  2. 21 Jun, 2016 1 commit
  3. 05 Apr, 2016 1 commit
  4. 29 Mar, 2016 1 commit
    • Ulf Hermann's avatar
      QmlJS: Fix resolution of "alias" directives in qrc files · 35bafd39
      Ulf Hermann authored
      Previously qrc paths of QML/JS documents were not considered for
      implicit imports. Only the path of the document in the file system
      was considered. The QML engine, however, doesn't know the original
      path at all and only uses the qrc paths for import resolution. This
      created a mismatch between what the QML engine could recognize and
      what the code model suggested.
      Without alias directives, any files imported from a qrc file would
      have to reside in the same directory as the one implicitly importing
      them, so this arrangement happened to work, most of the time.
      In order to support aliases we have to search the files in the same
      qrc path to figure out the imports. To do that, we keep a reverse
      map of qrc paths to files in the QrcParser and iterate that when
      resolving imports.
      Change-Id: I84baae6cbfbe96ddd5322c81494c1e4a3f473f3f
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
  5. 19 Jan, 2016 1 commit
  6. 16 Jan, 2015 1 commit
  7. 09 Oct, 2014 1 commit
  8. 04 Sep, 2014 1 commit
  9. 01 Jul, 2014 1 commit
  10. 08 Jan, 2014 1 commit
  11. 14 Nov, 2013 1 commit
  12. 10 Oct, 2013 1 commit
  13. 06 Jun, 2013 1 commit
  14. 03 Jun, 2013 1 commit
    • Fawzi Mohamed's avatar
      qmljs: adding qrc support · 5a4cdc11
      Fawzi Mohamed authored
      Qmljs now keeps a cache of parsed qrc files, and can resolve "qrc:" links.
      This breaks the assumption that the name that the qml files has on
      the filesystem is the one that qml sees, and that contents of
      directories can be found just looking at file whose path starts with the
      directory path.
      Currently the first file is used when multiple qrc files contain the same
      path, but support for strict and weak path resolving is already there.
      At the moment only qrc files for projects that call updateQmljsCodeModel
      are updated.
      ChangeLog: QmljsSupport: Imports using qrc links are resolved.
      Task-number: QTCREATORBUG-8953
      Change-Id: I695fac2692af2417d49c192c580a1c2e7b4873f4
      Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>