| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Amends commit 36e7b1925e2ff2df167280eb3592b99697a1234d.
Task-number: QTBUG-68178
Change-Id: Ie2f9ac98740b7cef325426da2efff469382444e7
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For releasing we want to link qdoc statically to libclang and ship
a "fat" binary, which allows us to not distribute separate libclang.
In the same time our users may want to link qdoc to an existing
libclang binary. Both cases make sense, especially that the static
build required some invasive patches in libclang.
Partially reverts fddf7ee536e4fd0061d0ee933707881cebe54223
Task-number: QTBUG-68178
Change-Id: Iaeab59c40b881907f0fd5f3ccefb6700dcd2dded
Reviewed-by: Martin Smith <martin.smith@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
|
|
|
|
|
| |
Change-Id: I5a069821a0dd05328e98eca9ba201b44bedd6cbd
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These two changes broke QDoc build on MinGW:
"Link qdoc to static libclang" (fddf7ee536e4fd0061d0ee933707881cebe54)
"Update clang version to 6.0" (c5ddbdb86b837fcdd406d12e66d8193c991bde)
To get Qt 5.11.0 release out in time we need take a shortcut and
disable the QDoc build. We agreed that qdoc binary will not be provided
on mingw530.
Task-number: QTBUG-66015
Change-Id: I25c6014754c58bc3202af645ef77ebc8bfaf1291
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
|
|
|
|
|
|
| |
Done-with: Mikhail Svetkin <mikhail.svetkin@qt.io>
Change-Id: Ifbd4e1b27f658f7d4f287a8a51f0cda54814e754
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
|
|
|
|
|
|
| |
Done-with: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Change-Id: If9838f027e59686a49f7e7c590f4d4fb8eaa3261
Reviewed-by: Martin Smith <martin.smith@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Remove the special handling which is no longer relevant
and check on the major version in addition.
Task-number: QTBUG-67762
Change-Id: If9acabfb6c9d9f6ff1fccf91c98ddd540415ab49
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In some situations you may want to mark a message as Done
without automatically jumping to the next untranslated message.
If you are revisiting (or fixing) some specific translations,
using "Done and Next" would constantly jump to another segment
for every change made.
You can now mark a message as translated using Alt+Return,
but also through the Translation > Done menu item.
Change-Id: I1a3c95fcf321a793c1b726ec13733c61f15caa05
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Mateusz Starzycki <mstarzycki@gmail.com>
|
|
|
|
|
|
|
| |
Amends 04e7f6668d.
Change-Id: I9401d7bab1266e99fca7df67653410f0e933d61d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
|
|
|
|
|
|
|
|
|
| |
Collection nodes (such as module pages) are no longer aggregates,
check for them explicitly.
Task-number: QTBUG-66545
Change-Id: I6b50a049138c44f2e99fe06cebc99887f2408c2e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise, all new forms saved will contain
<ui version="4.0" idbasedtr="false"> which causes unnecessary
changes and upsets older versions of uic.
Amends 85624e87256005a2560a658722da5c982c8374ad.
Task-number: QTBUG-34610
Change-Id: Ie688c5b9d1075bca96374d98b682dbbfb8bf7eca
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I901fb3da48fe77d7cc3edc7bad4f0f9033f2c85a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: Icbb7259c57b53560f7b9e1a6e039171debc26114
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: I337ae8b179d00075310bbba6235652c635c73557
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: I23eb27bbca316fa4149983a239e38443b03647f1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Task-number: QTBUG-67185
Change-Id: I4b857e2acbf10666446379390ee55a288a2d8cd2
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
|
|
|
|
|
| |
Change-Id: I9694fd92853c15f2eecb2bdd1b9655b05940f217
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Amends 909a00a4f3d1882eb974ad2953024c4670e2e392.
Change-Id: I13a0257d221d87eb7dc668f58f3bf5faf7218a9d
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commits c95cba39a68bea4dc4c3c003e768412f0640e24f and
65d817345faf34cf9e5cc4f203b276de906fd84a. 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: Ide8d1fb32e1e371716d5576d0f51771484463fb5
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
QDOC2_COMPAT is no longer meaningful.
Change-Id: I7ba96cef2002ffeaccb333d4938f9f415569850a
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Silence warning by gcc 7.2.
Change-Id: Ia734d7161fccb2f700bd955dc52c904e1e31987e
Reviewed-by: Martin Smith <martin.smith@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
.qmake.conf
Change-Id: I83e2382427eb4a8ee0d52d3c4f379242ef80e09e
|