mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-30 07:46:51 +08:00
32 lines
687 B
C++
32 lines
687 B
C++
// 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
|