summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/stringlistmodel
diff options
context:
space:
mode:
authorOleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io>2025-08-05 10:01:40 +0200
committerOleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io>2025-08-05 17:35:52 +0200
commit67086b4149da86427666967d11f3c0f33330b5b3 (patch)
treec3a16a64d4847593840c35c11540189e5a41151a /src/widgets/doc/snippets/stringlistmodel
parent965638584a9ed88d720a23f0c170c4f636839671 (diff)
Make snippets in widget folder compilable and add to the build system
Created a CMakeLists.txt file in the widgets folder and added snippets to it. Fixed related issues with missing includes and compilation errors. Task-number: QTBUG-137566 Change-Id: Ief61c3675d8b4d5935bbb0cb951d3a9e82f437f7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/stringlistmodel')
-rw-r--r--src/widgets/doc/snippets/stringlistmodel/model.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/doc/snippets/stringlistmodel/model.cpp b/src/widgets/doc/snippets/stringlistmodel/model.cpp
index 74b1aa4b26d..2f657a5002d 100644
--- a/src/widgets/doc/snippets/stringlistmodel/model.cpp
+++ b/src/widgets/doc/snippets/stringlistmodel/model.cpp
@@ -22,7 +22,7 @@ int StringListModel::rowCount(const QModelIndex &parent) const
//! [0]
-#ifdef 0
+#if 0
// This represents a read-only version of data(), an early stage in the
// development of the example leading to an editable StringListModel.