1. 13 Apr, 2018 - 1 commit
    • Josep Llodrà's avatar
      linguist: Add actions in View menu to show more/fewer guesses · 1636b5c8
      Josep Llodrà authored
      
      Three actions have been added to the main View menu (Guesses submenu)
      in order to easily change the number of Guesses displayed.
      
      View Menu
      ......
      Guesses > Show more (alt - +)        [shows 5 more guesses]
                Show fewer (alt - -)       [shows 5 fewer guesses]
                ---
                Reset to default (alt - 0) [resets to 5 guesses]
      ......
      
      Motivation behind this commit is that in large UIs with thousands
      of strings, 5 guesses are not enough in some situations to gather
      all the information necessary to correctly translate a string.
      
      Change-Id: I3fdc1b8fc27af40300897cdfd1f9fa3620caad55
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
      v5.11.0-beta4
      1636b5c8
  2. 12 Apr, 2018 - 1 commit
  3. 11 Apr, 2018 - 1 commit
    • Josep Llodrà's avatar
      linguist: Add Regular expression checkbox in Find Dialog · 165d2d76
      Josep Llodrà authored
      
      Now it is possible to search using a Perl-like regular
      expression. This enables the user to perform powerful
      searches. There are many scenarios in which this is
      convenient, let me show an example:
      
      Source (Eng)     | Translation (Spa)
      ------------------------------------
      From               Desde
      From               De
      ... from ...       ... de ...
      ... of ...         ... de ...
      from 1 to 10       de 1 a 10
      (plus many other strings also containing "de" or "desde")
      
      Even simple Regular Expressions like
      ^Desde$
      ^De$
      from \d+ to \d+
      become very convenient for fine-grained searches.
      
      If the regular expression written in the Find Dialog
      is not valid, text is highlighted in red and Find
      button is disabled.
      
      Change-Id: I90bb55d190d46263ec6adc27256d9c62a69e7f87
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
      165d2d76
  4. 10 Apr, 2018 - 1 commit
  5. 09 Apr, 2018 - 3 commits
    • Josep Llodrà's avatar
      linguist: Show remaining global&context translation counts in tooltips · 03923b27
      Josep Llodrà authored
      
      Linguist shows the number of finished units and the number of editable
      units in the lower right corner of the window (e.g.: 6714/6833).
      It also shows this completion progress number per context.
      
      With this change, it displays the difference between these numbers
      in a tooltip (i.e. hovering the mouse on the count 6714/6833), for
      both global progress count and per context progress count.
      
      While this change may be arguable, the remaining count is the number
      that a translator tracks and is constantly checking, other numbers
      are less relevant. This small change improves User Experience since
      the translator doesn't need to use a calculator or do a mental
      calculation, which takes time and may also lead to miscalculations.
      
      Change-Id: Icbb5e73bb4430d28f07eeff790b186579c48c8fb
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
      03923b27
    • Josep Llodrà's avatar
      linguist: Show context in guesses · 04e7f666
      Josep Llodrà authored
      
      Context for each Guess entry from "Phrases and guesses" is shown.
      This is quite convenient since context provides valuable information.
      Same source phrase could be in different contexts and the translation
      for each of them can be potentially different.
      
      For example, it would be useful in this situation (English-Spanish):
      
      Source phrase | Translation | Definition
      Add             Añadir        Guess from 'ButtonToolbar' (Ctrl+1)
      Add             Sumar         Guess from 'CalculatorDialog' (Ctrl+2)
      Addition:       Ampliación:   Guess from 'SizeEditorDisplay' (Ctrl+3)
      
      This is more helpful than:
      
      Source phrase | Translation | Definition
      Add             Añadir        Guess (Ctrl+1)
      Add             Sumar         Guess (Ctrl+2)
      Addition:       Ampliación:   Guess (Ctrl+3)
      
      Change-Id: I0b77cef0ea5fef95400ea60758cb0a96862e5bef
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
      04e7f666
    • Jarek Kobus's avatar
      Fix possible crash inside connection to the lambda · e96c1bf0
      Jarek Kobus authored
      
      Pass "this" context object to the connect().
      Otherwise when "this" instance gets deleted and the sender still exists,
      the lambda expression is still invoked for the deleted object.
      
      Change-Id: I0a38489fac302a85abc80928c6244383ff1870ff
      Reviewed-by: default avatarChristian Kandeler <christian.kandeler@qt.io>
      e96c1bf0
  6. 06 Apr, 2018 - 1 commit
  7. 05 Apr, 2018 - 2 commits
    • Jarek Kobus's avatar
      Create QHelpCollectionHandler's query dynamically · 49a5c554
      Jarek Kobus authored
      
      It fixes a warning about the use of db from the wrong thread.
      Before, the default m_query object was created
      in QHelpCollectionHandler constructor which caused the
      warning to appear. Now we create m_query object
      dynamically instead.
      
      This also fixed a leak in QHelpCollectionHandler::openCollectionFile()
      where two early returns, after the database had been opened, neither
      closed it nor set m_dbOpened.
      
      Change-Id: I24484d25d9d90b1a5d6fe4a5acb61c834e2b9599
      Reviewed-by: default avatarKai Koehne <kai.koehne@qt.io>
      Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
      49a5c554
    • Topi Reinio's avatar
      qdoc: Query environment variables from qmake · 61062f67
      Topi Reinio authored
      
      If qgetenv() doesn't return a valid environment variable, try querying
      from qmake (assuming the variable name starts with 'Q').
      
      This is useful for projects outside Qt, as it allows using e.g.
      QT_INSTALL_DOCS and QT_INSTALL_HEADERS. The former can be used for
      accessing the Qt documentation template, and the latter is useful for
      projects that need to pass Qt's include paths to Clang (which QDoc
      uses for parsing C++ documentation). The build system doesn't
      provide these paths when trying to build docs for a module that
      doesn't build on the host platform; for example, building Active Qt
      documentation on Linux.
      
      Change-Id: I758a5067d3dfdf13cadf979476323faea519ee40
      Reviewed-by: default avatarMartin Smith <martin.smith@qt.io>
      61062f67
  8. 04 Apr, 2018 - 1 commit
  9. 03 Apr, 2018 - 6 commits
  10. 29 Mar, 2018 - 1 commit
    • Simon Hausmann's avatar
      Add support for translation function aliases that are member expressions · f1c59c4e
      Simon Hausmann authored
      
      When traversing the AST for call expressions, it may happen that the
      base of the call expression is a field member expression instead of a
      plain identifier. For example with CustomTranslator.myTr() the base is a
      field member, with an identifier as base and myTr as name. We can
      construct a qualified name from that quite easily and this way support
      qualified tr aliases in qml files.
      
      Task-number: QTBUG-67278
      Change-Id: I106243d8eed6d8cec75819a44942cf750de2829a
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
      f1c59c4e
  11. 28 Mar, 2018 - 1 commit
  12. 27 Mar, 2018 - 1 commit
    • Topi Reinio's avatar
      qdoc: Print absolute path for errors and warnings · fbcf5ece
      Topi Reinio authored
      
      QDir::isAbsolutePath() returns true for paths that begin with root dir
      or drive letter (on Windows). Since Clang integration, we now see
      warnings with paths such as
      
      /path/to/qt5/qtbase/include/QtQuick/../../../qtdeclarative/src/ [...]
      
      Remove the check for isAbsolutePath() and always construct an absolute
      path.
      
      Change-Id: Iea1e6f83f452abf0644968e0a5ee725829a8716e
      Reviewed-by: default avatarMartin Smith <martin.smith@qt.io>
      fbcf5ece
  13. 22 Mar, 2018 - 3 commits
  14. 21 Mar, 2018 - 1 commit
  15. 20 Mar, 2018 - 1 commit
  16. 15 Mar, 2018 - 1 commit
  17. 14 Mar, 2018 - 1 commit
  18. 12 Mar, 2018 - 1 commit
  19. 07 Mar, 2018 - 1 commit
  20. 06 Mar, 2018 - 2 commits
    • Topi Reinio's avatar
      qdoc: Canonicalize include paths · dc10d71b
      Topi Reinio authored
      
      Resolve canonical include paths from the ones passed to QDoc from the
      command line and .qdocconf variable 'includepaths'.
      
      This allows adding include paths that are relative to the documentation
      project (.qdocconf file):
      
        includepaths = -I .
      
      which is useful for modules where we do not have a complete set of
      include paths provided by qmake.
      
      Change-Id: Ieaf0816e8c26857c873e4b521164c70bb1f5e5b3
      Reviewed-by: default avatarMartin Smith <martin.smith@qt.io>
      dc10d71b
    • Jarek Kobus's avatar
      Fix strings · 63967389
      Jarek Kobus authored
      
      Change-Id: Ide8d1fb32e1e371716d5576d0f51771484463fb5
      Reviewed-by: default avatarKarsten Heimrich <karsten.heimrich@qt.io>
      63967389
  21. 02 Mar, 2018 - 1 commit
  22. 01 Mar, 2018 - 1 commit
  23. 28 Feb, 2018 - 1 commit
  24. 23 Feb, 2018 - 3 commits
    • Martin Smith's avatar
      qdoc: Generate correct links to QML properties · 9dfdfdf5
      Martin Smith authored
      
      When a QML type is marked \qmlabstract, the documentation for
      its properties is included on the reference page for each QML
      type that inherits the abstract QML type. This means that when
      using the link command to link to one of these properties in
      HTML, qdoc must first obtain the correct file name. It was not
      getting the correct file name, when the link command appeared
      in documentation for a QML type that didn't inherit the QML
      type marked abstract. This update corrects that bug.
      
      Change-Id: I91ccb34e43618b7bbc1909026cbdf0c1b719df87
      Reviewed-by: default avatarTopi Reiniö <topi.reinio@qt.io>
      v5.11.0-beta1
      9dfdfdf5
    • Martin Smith's avatar
      qdoc: Remove a useless #ifdef · a4074919
      Martin Smith authored
      
      QDOC2_COMPAT is no longer meaningful.
      
      Change-Id: I7ba96cef2002ffeaccb333d4938f9f415569850a
      Reviewed-by: default avatarTopi Reiniö <topi.reinio@qt.io>
      a4074919
    • Martin Smith's avatar
      qdoc: Fix bugs in resolving inheritance and finding overridden functions · 88472204
      Martin Smith authored
      
      A class node must have pointers to the class nodes of its base classes, but these
      pointers might not exist when qdoc creates the class node for the class. They might
      not exist until all the index files and include files have been parsewd. qdoc was
      trying to resolve the base classes too early. This update lets qdoc wait until it
      is known that everything has been built before attempting to resolve inheritance.
      
      This update also delays finding the pointer to the function node for the overridden
      function for a function marked "override" until the pointer is needed. Instead of
      storing the pointer to the node, the qualification path to the function is stored
      as a string, and the string is used to look up the overridden function when it is
      needed, which is only when the \reimp command is processed during output.
      
      The function that resolves the pointer to the overridden function was moved to the
      function node class, where it makes more sense. The way a few qdoc warnings are
      reported was also changed.
      
      Change-Id: Ia54642d11242386ae75139065f481e5d30f79fb5
      Reviewed-by: default avatarTopi Reiniö <topi.reinio@qt.io>
      88472204
  25. 19 Feb, 2018 - 2 commits
  26. 18 Feb, 2018 - 1 commit