summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-tables
diff options
context:
space:
mode:
authorOleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io>2025-07-29 14:10:23 +0200
committerOleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io>2025-07-31 20:26:04 +0200
commit1042c917c36c95cf2650e26ed4234ccb752fb54f (patch)
treeb4c50025762ab830fc6ce9d15aa4fdc877eab641 /src/gui/doc/snippets/textdocument-tables
parent21885c14da1cd85040eccf359072f72232f3c733 (diff)
Create a target for gui snippets and add them to the build system
Made gui_snippets a target in the CMake build system. Added several snippets and fixed related issues. Task-number: QTBUG-137566 Change-Id: I776e819c38d96c5642e13ff97b4e2955bdcadeda Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-tables')
-rw-r--r--src/gui/doc/snippets/textdocument-tables/mainwindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/doc/snippets/textdocument-tables/mainwindow.h b/src/gui/doc/snippets/textdocument-tables/mainwindow.h
index 3885478e6cf..10733322c11 100644
--- a/src/gui/doc/snippets/textdocument-tables/mainwindow.h
+++ b/src/gui/doc/snippets/textdocument-tables/mainwindow.h
@@ -10,6 +10,8 @@ class QTextFrame;
class QTextBlock;
class QTextTable;
+QT_BEGIN_NAMESPACE
+
class MainWindow : public QMainWindow
{
Q_OBJECT
@@ -30,4 +32,6 @@ private:
QTextEdit *editor = nullptr;
};
+QT_END_NAMESPACE
+
#endif