summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/validators/ledwidget.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-06-26 15:28:39 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-06-28 14:05:41 +0200
commite00d8aa6a83d52b71e3ab2abdb45eafadf65e5f3 (patch)
tree05ca89b4e5300e70a7a1e64ee6fbae9bf87b2ce0 /examples/widgets/widgets/validators/ledwidget.cpp
parenta18c55e7380d123484d3cae11755337fb8b74a39 (diff)
Move validators example to manual test
Pick-to: 6.5 6.6 Change-Id: Ic91bc89422fb23e3782db69bab2953e7cf8ddf69 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/widgets/widgets/validators/ledwidget.cpp')
-rw-r--r--examples/widgets/widgets/validators/ledwidget.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/widgets/widgets/validators/ledwidget.cpp b/examples/widgets/widgets/validators/ledwidget.cpp
deleted file mode 100644
index 5b95595a75..0000000000
--- a/examples/widgets/widgets/validators/ledwidget.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include "ledwidget.h"
-
-LEDWidget::LEDWidget(QWidget *parent)
- : QLabel(parent), onPixmap(":/ledon.png"), offPixmap(":/ledoff.png")
-{
- setPixmap(offPixmap);
- flashTimer.setInterval(200);
- flashTimer.setSingleShot(true);
- connect(&flashTimer, &QTimer::timeout, this, &LEDWidget::extinguish);
-};
-
-void LEDWidget::extinguish()
-{
- setPixmap(offPixmap);
-}
-
-void LEDWidget::flash()
-{
- setPixmap(onPixmap);
- flashTimer.start();
-}
-