summaryrefslogtreecommitdiffstats
path: root/src/linguist/linguist
Commit message (Collapse)AuthorAgeFilesLines
* Qt Linguist: Fix the phrase view suggestion shortcuts to workFriedemann Kleint2021-02-243-29/+8
| | | | | | | | | | | | Remove class GuessShortcut which had a bug (connect to wrong signal of QShortcut) by a lambda expression. Do not create a shortcut for phrase 10 which resulted in CTRL+':'. Change-Id: I26f35ece1bcdd2e75a56b8e4f1f69987a8054e52 Reviewed-by: Kai Koehne <kai.koehne@qt.io> (cherry picked from commit 4ad7a232cce5fd4e5ec88c2df46ca1e564772913) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Bump copyright year to 2021Friedemann Kleint2021-02-031-1/+1
| | | | | | | | Fixes: QTBUG-89980 Change-Id: Ice588f78d392f1dfd1f96de8840a3c7e28e4edd1 Reviewed-by: Kai Koehne <kai.koehne@qt.io> (cherry picked from commit 0a097b742dcffc04690e98ce2e574febad25014d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Linguist: Install phrasebooksKai Koehne2020-11-302-8/+185
| | | | | | | | Fixes: QTBUG-88972 Change-Id: Icb720cf7b9cdc7ac0cbeead5fee25e590685b1bd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit afd117a4a465e21f33980e495d8883b0f9c41244) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Revert "Linguist: Use QDesktopServices to show linguist manual"Kai Koehne2020-11-272-5/+32
| | | | | | | | | | | | | This reverts commit cbf658dff28e20ae0f2b0dc87a931cf9444559b4 and parts of commit 1d994b1471bd43d7003697b47e3f7d2ebfc808df Reason for revert: Assistant is enabled again Change-Id: I8d39a7c62cb401fdb7ecc6ffb972b57c01969c9b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> (cherry picked from commit 42838108d04a114b109379544e1cc2228a74b257) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use https instead of http when opening docsJarek Kobus2020-11-251-1/+1
| | | | | | | Change-Id: I10dfbd66b2510ae23ef91a2048f1ead6ddfb588f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 1d994b1471bd43d7003697b47e3f7d2ebfc808df) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* CMake: Update documentation of CMake commands for Qt 6 for Qt LinguistToolsKai Koehne2020-11-162-19/+24
| | | | | | Task-number: QTBUG-88530 Change-Id: I730ceccac5e5b93c93b15bc39c2c0ed6e7f4f670 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Doc: Enforce zero documentation warning policyTopi Reinio2020-11-071-0/+2
| | | | | | Task-number: QTBUG-78069 Change-Id: I3809c090fd46fefeefaad003d648f9d9db56f8f5 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Linguist: Use QDesktopServices to show linguist manualJarek Kobus2020-11-062-32/+5
| | | | | | | Task-number: QTBUG-86746 Change-Id: Iead8fd3f8149432e99e19057c797b2f0c202a6a0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Linguist: Remove code path for reading config files from Qt < 4.5Friedemann Kleint2020-11-051-5/+1
| | | | | | | | It was causing a deprecation warning about QVariant::Type. Change-Id: I87a2aedea630d5105eebffbf0787ec43ebe79cd0 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* CMake: Regenerate projects to use new qt_internal_ APIAlexandru Croitor2020-10-011-3/+3
| | | | | | | | Modify special case locations to use the new API as well. Task-number: QTBUG-86815 Change-Id: I84f5fc4eb26f95d81ce5b5b8cc72706bb9185026 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Linguist: Refactor iteratorsJarek Kobus2020-09-171-3/+3
| | | | | | | | | Use more const iterators. Fix mixing const iterators with non-const iterators. Use auto for iterators wherever easily possible. Change-Id: Ib6e73319971396e47bb0b0f5c252b8cf246de008 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix warnings from using deprecated QLibraryInfo APIVolker Hilsheimer2020-09-162-2/+2
| | | | | | | | As of 557623cc4f22295e5e89462dfdff20d78b3b9cdc in qtbase, QLibraryInfo::location is QLibraryInfo::path. Change-Id: I6e4788011fd8f64f5a433b00cb327c2afcf68527 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix compile warning from deprecated application attributesVolker Hilsheimer2020-09-151-3/+0
| | | | | | | | | | | | | | AA_DisableHighDpiScaling and AA_UseHighDpiPixmaps have been deprecated. As of 90358f6042d1fe2db849e17e1b0c875fb0560b20 and 2dc46c09026362cc267b1183faf09fb29479ef93 in qtbase, respectively, these settings are deprecated and have no effect. Remove their setting, and also the respective command line options in Qt Designer and the pixeltool. Change-Id: Iaa057f6a8a8396b822d9190f17e5f9c73e9cc2bb Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Linguist: Replace foreach with range-based forJarek Kobus2020-09-1510-69/+82
| | | | | Change-Id: I8b1aed7bc5f4f1d14ff9db4cf7c09fbc4267246d Reviewed-by: hjk <hjk@qt.io>
* Linguist: Port to typed signal-slot connectionsJarek Kobus2020-09-1515-266/+354
| | | | | Change-Id: I9967811117eb040c3a3ccf058454aee50ce385a6 Reviewed-by: hjk <hjk@qt.io>
* Use operator| to compose key sequencesFriedemann Kleint2020-09-071-1/+2
| | | | | | | | | | | In preparation for deprecating operator+. It's deprecated in C++20. Insert casts as necessary. Drive-by, prepare for deprecation of operator+ for building key sequences. Initial-patch-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Pick-to: 5.15 Change-Id: Iaae4e35a56aa1c2365bc25af2582cf820de38d5e Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* CMake: Regenerate load(qt_app) projectsAlexandru Croitor2020-08-261-12/+36
| | | | | | | | | | These now use the new qt_internal_add_app function. Also the script will output necessary code to set the icons and resource files for each of the apps. Task-number: QTBUG-85757 Change-Id: I1a336243fc53a7f329ca17e6c1e40818dabeae30 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Tools: Fix qHash signatureKai Koehne2020-08-131-2/+2
| | | | | Change-Id: I2970b8caf918c5cd74e95d8429e2eac97ffe74e6 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* Add ; to Q_UNUSEDLars Schmertmann2020-06-281-4/+4
| | | | | | | | This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: I157af8d748f975b91c790c16eef5fce55af4b0af Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Port QtTools from QStringRef to QStringViewKarsten Heimrich2020-06-151-10/+10
| | | | | | Task-number: QTBUG-84319 Change-Id: Idb5a41172ea38b2f4edf385d67c1cdc2968a8d8c Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Remove more usages of QDesktopWidgetFriedemann Kleint2020-06-101-2/+2
| | | | | Change-Id: I678bceedd7374e3a0a9fab79f03259836cab0c0d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add missing overrideAlexander Volkov2020-05-2014-32/+32
| | | | | Change-Id: Id2b1c4b9e7cb24b427f7e3de4b00d1472c67cb5a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Get rid of the QTextCodec dependency in linguistLars Knoll2020-05-181-2/+0
| | | | | Change-Id: I9f09578b816ff24a23e17b3255ac93c5eb7c321e Reviewed-by: Liang Qi <liang.qi@qt.io>
* Fix language selection in Designer, Linguist and AssistantMiłosz Kosobucki2020-05-121-3/+2
| | | | | | | | | | | Previous way of loading translation didn't use the proper QTranslator::load() overload. Because of that, the name of the locale was used which may be different than user's preferred display language. See also https://codereview.qt-project.org/c/qt/qtdoc/+/297560 Change-Id: Icbb5d4c94c2d627e521005dcd90a1a0de495c63c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Port linguist from QRegExp to QRegularExpressionLars Knoll2020-05-092-3/+2
| | | | | | | | | Use the DotMatchesEverythingOption in qmakebuiltins.cpp, where we interpret .pro files, to increase compatibility with QRegExp. Change-Id: Ieb460c9647b53d6b8ca3d876e239fc8171ab7802 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Plug memory leak when user cancels adding phrase to phrasebookVolker Hilsheimer2020-05-021-10/+18
| | | | | | | | Fixes: QTBUG-83914 Change-Id: I94e8396c6e508fed699b6892f49dc63e4c10da4c Coverity-Id: 22122 Pick-to: 5.15 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Merge remote-tracking branch 'origin/5.15' into devAlexandru Croitor2020-04-151-6/+0
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: a bunch of .pro and configure.json file adjustments and some conflicting cherry-picks from dev -> 5.15 that are merged into dev again src/assistant/assistant/main.cpp Change-Id: I174c00b6a300c6d46c4e081bdcb2f15f23ae9ef2
| * Doc: Remove \contentspage commandsTopi Reinio2020-03-151-6/+0
| | | | | | | | | | | | | | | | | | | | The command is deprecated and has no effect apart from generating a documentation warning. Drop the command also from the output generated by qtattributionsscanner. Change-Id: Ic286909215d55f4062ea0af790bfb9be91747a98 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* | Implement enhanced translation statisticsMateusz Starzycki2020-04-086-40/+265
| | | | | | | | | | | | | | | | | | | | More detailed statistics about translation count such as the word, character and total messages per finished unfinished and obsolete category Task-number: QTBUG-2088 Change-Id: I0af2bde9c74635a92cd89553c09a54d3d9682aa5 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Update dependenciesFriedemann Kleint2020-03-311-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adapt to qtbase/bcaff2b06fc46fce8a3ae6d613c025c8d097229c merging the QAction classes, qtbase/d975ad4ed728553b765c61f38c1e0df899187cf5 merging the QShortcut classes and qtbase/d975ad4ed728553b765c61f38c1e0df899187cf5 moving the Undo framework to QtGui. Clean up include directives. Change-Id: Ib825f17284390c103d5ac2ae1f2c8fe65a534f1a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* | CMake: Regenerate projects after mergewip/cmakeAlexandru Croitor2020-03-181-6/+4
| | | | | | | | | | | | | | Plus additional adjustments. Change-Id: I0c2341ef6a5557e18df91b753f9e441c5b1a68e2 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | Merge remote-tracking branch 'origin/dev' into wip/cmakeAlexandru Croitor2020-03-185-55/+42
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: dependencies.yaml Change-Id: Ia86822a3b64be4e17d525f6b055eadfab7215bc8
| * | Qt Linguist: Fix compilationFriedemann Kleint2020-03-101-1/+1
| |/ | | | | | | | | | | | | | | Use QTextDocument::toRawText() instead of private API removed by qtbase/4724dfff627f3cd3754f5d4a827c6b6790a89955. Change-Id: I1b924bf78200f45d33a8e875912c2e31097da41f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| * Fix deprecation warningsFriedemann Kleint2020-03-041-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Use split behavior enumeration from Qt, fixing: qdbusmodel.cpp:308:75: warning: 'SkipEmptyParts' is deprecated [-Wdeprecated-declarations] Remove the dock widget feature settings from Linguist since all features are enabled by default, fixing: mainwindow.cpp:302:45: warning: 'AllDockWidgetFeatures' is deprecated [-Wdeprecated-declarations] Change-Id: I72ada0dcbc81792d8643fc0948d86ea08847a8ec Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
| * Use Qt::SplitBehavior in preference to QString::SplitBehaviorEdward Welbourne2020-03-021-1/+1
| | | | | | | | | | | | | | | | The Qt version was added in 5.14 "for use as eventual replacement for QString::SplitBehavior." Move another step closer to that goal. Change-Id: I7137cf8339bfe9fdcf4cb7cc695cb146aef410fb Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| * Merge remote-tracking branch 'origin/5.14' into 5.15Qt Forward Merge Bot2020-01-141-2/+2
| |\ | | | | | | | | | Change-Id: Ie6dc6946f0cf21c2cf57643c393e61b2deefb90d
| | * Bump copyright yearJani Heikkinen2020-01-081-2/+2
| | | | | | | | | | | | | | | Change-Id: I81c229523e0d896f25d6d961c9857b615218ecbb Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
| * | Stop using SAX classesSona Kurazyan2020-01-083-46/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SAX classes for parsing XML documents will be deprecated soon. Re-implemented SAX-based xml parsing classes using QXmlStreamReader. All the parsers now inherit from XmlParser, which drives the parsing loop and allows overriding the methods for handling different XML tokens in a specific way depending on the use-case. Task-number: QTBUG-76177 Change-Id: I5393cc7218beffb4e48187e435c89d1d179deb37 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * | Fix Qt6 buildAlexandru Croitor2019-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie413ca2e2f81ac0e92628ffd2f3e93047a91bd0c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> (cherry picked from commit 6b2f32f3dc9de965801927a4bc5d970028a318a6) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | | Merge remote-tracking branch 'origin/dev' into wip/cmakeLeander Beernaert2019-12-097-44/+101
|\ \ \ | | | | | | | | | | | | Change-Id: I6368c62aaf33bff9d9f41d7830ee7411c2cfd827
| * | | Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2019-11-232-2/+2
| |\| | | | | | | | | | | | | | Change-Id: Ib7e4d5d1f997c67bb68f4c5cb20adb4a5e26f6f5
| | * | Avoid initializing QFlags with 0 or nullptrFriedemann Kleint2019-11-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It is being deprecated. Change-Id: I5a2216b313c53ff7d42e02c0d91632550f3536ae Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Merge remote-tracking branch 'origin/5.15' into devLiang Qi2019-10-141-20/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/linguist/lupdate/cpp_clang.cpp src/linguist/lupdate/cpp_clang.h src/linguist/lupdate/main.cpp src/qdoc/qdoc.pro src/windeployqt/main.cpp Change-Id: I467e502a6186d9e6b7fc92b652de89f296740e5d
| | * | Remove usages of deprecated APIs of QDesktopWidgetSona Kurazyan2019-10-091-1/+0
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replaced QDesktopWidget::screenNumber(QWidget*) -> QWidget::screen() - Removed unused QDesktopWidget includes. Task-number: QTBUG-76491 Change-Id: I5be0e4aac2faa4cbd389be45ea6c45ae1eab507a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
| | * Linguist: Remove splash screenhjk2019-09-111-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | It starts well below 0.5s, and having the splash screen flicker around in that time is more of an irritation than it helps. Change-Id: I30648512714e588fca90f22c175bfcb7dd0f8b40 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
| * | Merge remote-tracking branch 'origin/wip/qt6' into devSimon Hausmann2019-10-041-1/+1
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/windeployqt/main.cpp Change-Id: I446b51332eaaec91f502fcc2ceca52291b0b0468
| * | Fix deprecation warningsFriedemann Kleint2019-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ../../../shared/qtgradienteditor/qtgradientstopswidget.cpp:963:31: warning: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations] helpviewer_qtb.cpp:280:18: warning: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations] shared/previewmanager.cpp:626:84: warning: 'void QWidget::getContentsMargins(int*, int*, int*, int*) const' is deprecated: use contentsMargins() [-Wdeprecated-declarations] mainwindow.cpp:2812:27: warning: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations] Change-Id: Ib6e675b08d1c4445a2333676432129b765da8d0e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| * | Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-07-161-0/+1
| |\ \ | | | | | | | | | | | | Change-Id: I51fa8c90923e9730d7787e763fad996db51d350e
| | * | Doc: Replace example file lists with links to code.qt.ioTopi Reinio2019-07-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-74391 Change-Id: Iced8f21af188b249a0ac59f71fa2fb7cb6a52869 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
| * | | Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-07-112-21/+97
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: If0d8f3f1dc3be742bb2fadb7873eabdd6f46d3d1