diff options
Diffstat (limited to 'tests/manual/qglyphruns/glyphruninspector.h')
-rw-r--r-- | tests/manual/qglyphruns/glyphruninspector.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/manual/qglyphruns/glyphruninspector.h b/tests/manual/qglyphruns/glyphruninspector.h new file mode 100644 index 0000000000..d2aa6033db --- /dev/null +++ b/tests/manual/qglyphruns/glyphruninspector.h @@ -0,0 +1,31 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef GLYPHRUNINSPECTOR_H +#define GLYPHRUNINSPECTOR_H + +#include <QWidget> + +class QTextLayout; +class QTabWidget; +class SingleGlyphRun; +class GlyphRunInspector : public QWidget +{ + Q_OBJECT +public: + explicit GlyphRunInspector(QWidget *parent = nullptr); + + void updateLayout(QTextLayout *layout, int start, int length); + +private slots: + void updateVisualizationForTab(); + +signals: + void updateBounds(const QRegion ®ion); + +private: + QTabWidget *m_tabWidget; + QList<SingleGlyphRun *> m_content; +}; + +#endif // GLYPHRUNINSPECTOR_H |