blob: 4b3943cf6a874bbb27e6ba6f88d6b2c89510a256 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#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
|