- 13 Apr, 2018 - 1 commit
-
-
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:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
- 12 Apr, 2018 - 1 commit
-
-
Topi Reinio authored
When generating a function signature used in index files (and webxml output), omit adding the 'const' attribute for const functions as FunctionNode::signature() has already added it. Task-number: QTBUG-66528 Change-Id: I7074034d74506d25375603f39b4c2763bd732e4f Reviewed-by:
Martin Smith <martin.smith@qt.io>
-
- 11 Apr, 2018 - 1 commit
-
-
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:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
- 10 Apr, 2018 - 1 commit
-
-
Topi Reinio authored
Add missing documentation for QDesignerFormWindowInterface, fix \fn commands and missing namespace specifiers. Change-Id: I3481781d30760768d4b79d8ea889c1c17b251f67 Reviewed-by:
Martin Smith <martin.smith@qt.io> Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@qt.io>
-
- 09 Apr, 2018 - 3 commits
-
-
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:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
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:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
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:
Christian Kandeler <christian.kandeler@qt.io>
-
- 06 Apr, 2018 - 1 commit
-
-
Friedemann Kleint authored
Otherwise, all new forms saved will contain <ui version="4.0" idbasedtr="false"> which causes unnecessary changes and upsets older versions of uic. Amends 85624e87 . Task-number: QTBUG-34610 Change-Id: Ie688c5b9d1075bca96374d98b682dbbfb8bf7eca Reviewed-by:
Jarek Kobus <jaroslaw.kobus@qt.io>
-
- 05 Apr, 2018 - 2 commits
-
-
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:
Kai Koehne <kai.koehne@qt.io> Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io>
-
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:
Martin Smith <martin.smith@qt.io>
-
- 04 Apr, 2018 - 1 commit
-
-
Martin Smith authored
When multiple anonymous enum types appear in the same class declaration, merge them into one enum type called "anonymous" in that class. Change-Id: Iccdbec5c54948e5e61a7025d84dedaed1be3e76b Task-number: QTBUG-67243 Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@qt.io>
-
- 03 Apr, 2018 - 6 commits
-
-
Alexander Akulich authored
Service name edit does not actually change a service dbus name, so subclass the QStringListModel and explicitly remove IsEditable flag to make names read-only. Change-Id: Idca77f449eb07cdebb0012cb2fb6e9039be303b6 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
Alexander Akulich authored
Change-Id: I901fb3da48fe77d7cc3edc7bad4f0f9033f2c85a Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
Alexander Akulich authored
Change-Id: Icbb7259c57b53560f7b9e1a6e039171debc26114 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
Alexander Akulich authored
Change-Id: I337ae8b179d00075310bbba6235652c635c73557 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
Alexander Akulich authored
Change-Id: I23eb27bbca316fa4149983a239e38443b03647f1 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
Kai Koehne authored
Rename test qt_attribution.json files to qt_attribution_test.json. This avoids warnings when picking up the test files in normal mode. Change-Id: I8831a81c84986c074d3519d2855c00987b4c2570 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
- 29 Mar, 2018 - 1 commit
-
-
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:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
- 28 Mar, 2018 - 1 commit
-
-
Topi Reinio authored
Make Config::getString() return an empty string for variables that are defined as empty, while continuing to return a null string for undefined ones. Use a defined-as-empty 'moduleheader' variable: moduleheader = to mark a documentation project that doesn't need a precompiled header to be built. Change-Id: I2ccb631c73a1b91dc35955e5f21648db88915064 Reviewed-by:
Martin Smith <martin.smith@qt.io>
-
- 27 Mar, 2018 - 1 commit
-
-
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:
Martin Smith <martin.smith@qt.io>
-
- 22 Mar, 2018 - 3 commits
-
-
Martin Smith authored
This update surrounds the adding of -system parameters to includePaths with qdoc will not pass any isystem includes to clang. This update also simplifies some if statements in the help project writer by using some existing convenience functions in place of comparisons to enum values. Change-Id: I35d89501dcb51a98af6a6c3278f0f071ceb78259 Reviewed-by:
Topi Reiniö <topi.reinio@qt.io>
-
Martin Smith authored
Shared comments were only allowed for functions that are members of classes. This update extends that functionality to functions in namespaces, including the global namespace. Change-Id: Ida855d8b49c6cdfa1fe900d96af9841e05a87aee Reviewed-by:
Topi Reiniö <topi.reinio@qt.io>
-
Ulf Hermann authored
If we only need registered documentations of a specific namespace we can restrict the SQL query accordingly, so that we don't have to iterate through all the results afterwards. Change-Id: I124cf16ed95e1010b8a05d8cb723c2a1f03120d4 Reviewed-by:
Jarek Kobus <jaroslaw.kobus@qt.io>
-
- 21 Mar, 2018 - 1 commit
-
-
Jani Heikkinen authored
Task-number: QTBUG-67185 Change-Id: I4b857e2acbf10666446379390ee55a288a2d8cd2 Reviewed-by:
Robert Loehning <robert.loehning@qt.io>
-
- 20 Mar, 2018 - 1 commit
-
-
Kai Koehne authored
Change-Id: I9694fd92853c15f2eecb2bdd1b9655b05940f217 Reviewed-by:
Jarek Kobus <jaroslaw.kobus@qt.io>
-
- 15 Mar, 2018 - 1 commit
-
-
Friedemann Kleint authored
Match interesting headers by file names in case mismatches occur between installed headers and headers in the source tree. Task-number: PYSIDE-620 Change-Id: Ie36fbd46fda38c86d88a00a992cac2fb58dd76bc Reviewed-by:
Martin Smith <martin.smith@qt.io>
-
- 14 Mar, 2018 - 1 commit
-
-
Friedemann Kleint authored
Amends 909a00a4 . Change-Id: I13a0257d221d87eb7dc668f58f3bf5faf7218a9d Reviewed-by:
Kai Koehne <kai.koehne@qt.io>
-
- 12 Mar, 2018 - 1 commit
-
-
Martin Smith authored
This update only adds -fPIC to the options passed to clang if Q_OS_WIN is not defined. Change-Id: I473ac14a026aecff141ab6d16e6283efe7bc5bd5 Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by:
Topi Reiniö <topi.reinio@qt.io>
-
- 07 Mar, 2018 - 1 commit
-
-
Edward Welbourne authored
This reverts commits c95cba39 and 65d81734 . Apparently clang is now smart enough to handle its system include paths itself; and trying to "help" was causing problems. It was, in any case, a heinous hack. Task-number: QTBUG-66746 Change-Id: I485c6acddfd89f91a4b719f2e2e049ff76a61ce9 Reviewed-by:
Martin Smith <martin.smith@qt.io> Reviewed-by:
Topi Reiniö <topi.reinio@qt.io>
-
- 06 Mar, 2018 - 2 commits
-
-
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:
Martin Smith <martin.smith@qt.io>
-
Jarek Kobus authored
Change-Id: Ide8d1fb32e1e371716d5576d0f51771484463fb5 Reviewed-by:
Karsten Heimrich <karsten.heimrich@qt.io>
-
- 02 Mar, 2018 - 1 commit
-
-
Martin Smith authored
This update adds QtGadgetHelper to the list of names that are ignored if they are not documented. Change-Id: I58ca829d4576c390d78dcd2e0c5a3b75a9fec7de Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@qt.io>
-
- 01 Mar, 2018 - 1 commit
-
-
Martin Smith authored
Earlier, a test was added to qdoc to ensure that functions added to class declarations by macros like Q_OBJECT would not cause qdoc to output warnings that the functions were not documented. But the undocumented functions were still listed in the documentation. This update keeps them out of the documentation. Task-number: QTBUG-66742 Change-Id: I10014341fc7b870ef937ef7f0a303ccc301bf8b5 Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by:
Topi Reiniö <topi.reinio@qt.io>
-
- 28 Feb, 2018 - 1 commit
-
-
Jüri Valdmann authored
If clang is installed in e.g. /usr/lib, then a qdoc binary built with -developer-build will try to link against libQt5Core.so in /usr/lib and not the one that's in the build directory. Change-Id: I5e0e90ec96fd1f84a4dc904a35eec994d639bc9f Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
- 23 Feb, 2018 - 3 commits
-
-
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:
Topi Reiniö <topi.reinio@qt.io>
-
Martin Smith authored
QDOC2_COMPAT is no longer meaningful. Change-Id: I7ba96cef2002ffeaccb333d4938f9f415569850a Reviewed-by:
Topi Reiniö <topi.reinio@qt.io>
-
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:
Topi Reiniö <topi.reinio@qt.io>
-
- 19 Feb, 2018 - 2 commits
-
-
Friedemann Kleint authored
Silence warning by gcc 7.2. Change-Id: Ia734d7161fccb2f700bd955dc52c904e1e31987e Reviewed-by:
Martin Smith <martin.smith@qt.io>
-
Friedemann Kleint authored
Extract a helper function to resolve snippet files and use it in the WebXML generator to output the resolved snippet path. This can be used by PySide2 to fall back to a C++ snippet in case a matching Python snippet is not present. Task-number: PYSIDE-363 Change-Id: I182ae660227e97edf43e6dac906aeff9a5ae23f9 Reviewed-by:
Martin Smith <martin.smith@qt.io> Reviewed-by:
Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by:
Alexandru Croitor <alexandru.croitor@qt.io>
-
- 18 Feb, 2018 - 1 commit
-
-
Liang Qi authored
Conflicts: .qmake.conf Change-Id: I83e2382427eb4a8ee0d52d3c4f379242ef80e09e
-