summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/elidedlabel/main.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-08 08:26:59 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-09 00:23:33 +0100
commit55f2b448b0aec4e9a8fd3896b2a40f37e939ecb3 (patch)
tree68a01e22a34672898ee3010c7b1a563b4d869998 /examples/widgets/widgets/elidedlabel/main.cpp
parent31518f1a4e3c4a7c77ae2e008e903a849ba75dd6 (diff)
Turn elidedlabel example into a code snippet
The example is 90% boiler plate for subclassing QFrame and providing a bit of GUI to change the size of the label using sliders. The interesting bit is a block of 25 lines of code, so turn those into a snippet and add that to the QTextLayout overview documentation. Fixes: QTBUG-111011 Pick-to: 6.5 Change-Id: I6e97b2ea47b553c8d998ad185cfac006721ef7ee Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'examples/widgets/widgets/elidedlabel/main.cpp')
-rw-r--r--examples/widgets/widgets/elidedlabel/main.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/widgets/widgets/elidedlabel/main.cpp b/examples/widgets/widgets/elidedlabel/main.cpp
deleted file mode 100644
index 6a1380264e..0000000000
--- a/examples/widgets/widgets/elidedlabel/main.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include "testwidget.h"
-
-#include <QApplication>
-
-//! [0]
-int main( int argc, char *argv[] )
-{
- QApplication application( argc, argv );
- TestWidget w;
- w.showFullScreen();
- return application.exec();
-}
-//! [0]