summaryrefslogtreecommitdiffstats
path: root/examples/assistant/simpletextviewer/textedit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update MainWindow to dynamically display the active file namePatryk Stachniak2024-11-291-0/+1
| | | | | | | | | | | | | | | | | | | | Added functionality to update the main window's title with the name of the currently opened file in the text editor. This change improves user experience by providing a clear indication of the file being viewed or edited. Introduced a fileNameChanged signal in TextEdit to notify changes in the active file. Connected the signal to a new slot in MainWindow to update the window title dynamically. Adjusted FindFileDialog and TextEdit::setContents to emit the signal when a new file is opened. This enhancement addresses user feedback regarding better context visibility in the application. Task-number: QTBUG-118728 Pick-to: 6.8 Change-Id: Ib951592388943fcbc40efd7d41a6fc0452fc9b40 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* SimpleTextViewer: Revamp the exampleJarek Kobus2023-07-241-2/+2
| | | | | | | | | | | | | 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>
* 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>
* Assistant Examples: Unify #include styleKai Koehne2017-10-041-4/+4
| | | | | 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>
* 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: Doc: Moved assistant examplesDavid Schulz2012-12-061-0/+74
... and changed exampledirs in the qdocconf files to the appropriate modules. Change-Id: Ic15d9fc845d59fb4e84ee39a52e457666fa09e51 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>