summaryrefslogtreecommitdiffstats
path: root/examples/assistant/simpletextviewer/assistant.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SimpleTextViewer: Use new string literalsJarek Kobus2023-07-241-7/+9
| | | | | | Pick-to: 6.6 6.5 Change-Id: I703b7a364cc5e30327850e0a68869e5e7485bada Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* SimpleTextViewer: Revamp the exampleJarek Kobus2023-07-241-18/+14
| | | | | | | | | | | | | Fix const correctness. Fix code formatting. Fix error message on crash. Use initializer lists in c'tors. Limit the start assistant timeout to 3 seconds, like it's done for termination. Pick-to: 6.6 6.5 Change-Id: Idfafa35834fba725b03d80e6252be8ac3eaf489f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-061-1/+1
| | | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I234704ba429750ddee958a82f6c941d041da0653 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-191-49/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I5335388c0472b0ee554234fc7eca60769e504660 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Examples: Don't use QDir::separator() in internal pathsKai Köhne2021-06-141-4/+5
| | | | | | | | | | | | Documentation says: You do not need to use this function to build file paths. If you always use "/", Qt will translate your paths to conform to the underlying operating system. Pick-to: 5.15 6.2 Change-Id: Iba62a197821b9abc819c3d333e44c9f1ed989898 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Don't use deprecated QLibrary::locationVolker Hilsheimer2021-03-261-2/+2
| | | | | | | Use QLibrary::path instead to silence compiler warnings. Change-Id: Ib39ab1528f6060ae37dddfaf6b69e420c37bcd35 Reviewed-by: hjk <hjk@qt.io>
* Polish the SimpleTextViewer exampleFriedemann Kleint2020-04-241-17/+28
| | | | | | | | | | | - Port to Qt 5 connection syntax, fixing error in Qt 6 QObject::connect: No such signal QComboBox::currentIndexChanged(QString) in findfiledialog.cpp:194 - Remove unused functions and parameters to avoid QOverload - Add process error handling Pick-to: 5.15 Change-Id: I923f44ce0eb27b7f73f9a0e16c11f48a80a0c03a Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* SimpleTextViewer example: Fix documentation not showingFriedemann Kleint2020-04-241-8/+35
| | | | | | | | | | Add a path search including the application source directory, which should at least fix Qt 5.15. For educational purposes, also uses some standard paths. Pick-to: 5.15 Change-Id: I1b20bd632b604a1413d7ac66d2e419e771708562 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* SimpleTextViewer example: Remove QObject::tr antipatternKai Koehne2018-01-041-2/+3
| | | | | Change-Id: I8e7d1dcf9cd2a5a1ccc563032324528fe3262611 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Assistant Examples: Use nullptrKai Koehne2017-10-041-1/+1
| | | | | Change-Id: Icfede0f02c6651aa39e2a0a9d5b586a5bb7037e9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Assistant Examples: Unify #include styleKai Koehne2017-10-041-8/+7
| | | | | Change-Id: I72c419123e27e06ae30fa2042fb8bb6ddbab9da4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Unify license header usagev5.7.0Antti Kokko2016-06-101-3/+13
| | | | | | | Updated BSD license. Change-Id: Ie2521f94a2e8ed423f989e902e5eb88512814f71 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Update copyright headersAntti Kokko2015-02-141-4/+4
| | | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I7f14f408e04c5c4f73a913fae153adcffbebe38f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* whitespace fixesOswald Buddenhagen2014-01-201-3/+3
| | | | | | | | remove trailing spaces & expand tabs Change-Id: If9909c94b52d9dacb7c8735470525d18a1c97d6b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Remove all Trolltech references.kh12013-01-141-2/+2
| | | | | Change-Id: Idad55a5e6d87ea5703681e3ef11fc35ce9ff84eb Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | | Change-Id: I9b11dc8309c9739955e3acea12b564d6ad608f59 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* QtTools: Fix example names after adjusting exampledirsDavid Schulz2012-12-061-1/+1
| | | | | Change-Id: I00f60412346c85de044eb784a36f98a12c4ccd05 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* QtTools: Doc: Moved assistant examplesDavid Schulz2012-12-061-0/+109
... and changed exampledirs in the qdocconf files to the appropriate modules. Change-Id: Ic15d9fc845d59fb4e84ee39a52e457666fa09e51 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>