summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/charactermap/characterwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/widgets/charactermap/characterwidget.h')
-rw-r--r--examples/widgets/widgets/charactermap/characterwidget.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/examples/widgets/widgets/charactermap/characterwidget.h b/examples/widgets/widgets/charactermap/characterwidget.h
deleted file mode 100644
index b8aa76d111..0000000000
--- a/examples/widgets/widgets/charactermap/characterwidget.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#ifndef CHARACTERWIDGET_H
-#define CHARACTERWIDGET_H
-
-#include <QFont>
-#include <QSize>
-#include <QString>
-#include <QWidget>
-
-QT_BEGIN_NAMESPACE
-class QMouseEvent;
-class QPaintEvent;
-QT_END_NAMESPACE
-
-//! [0]
-class CharacterWidget : public QWidget
-{
- Q_OBJECT
-
-public:
- CharacterWidget(QWidget *parent = nullptr);
- QSize sizeHint() const override;
-
-public slots:
- void updateFont(const QFont &font);
- void updateSize(const QString &fontSize);
- void updateStyle(const QString &fontStyle);
- void updateFontMerging(bool enable);
-
-signals:
- void characterSelected(const QString &character);
-
-protected:
- void mouseMoveEvent(QMouseEvent *event) override;
- void mousePressEvent(QMouseEvent *event) override;
- void paintEvent(QPaintEvent *event) override;
-
-private:
- void calculateSquareSize();
-
- QFont displayFont;
- int columns = 16;
- int lastKey = -1;
- int squareSize = 0;
-};
-//! [0]
-
-#endif