2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2012-10-02 09:12:39 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2012-05-16 12:16:45 +02:00
|
|
|
|
|
|
|
|
#include "qmlprofilerstatemanager.h"
|
2013-08-08 13:28:08 +02:00
|
|
|
#include "qmlprofilermodelmanager.h"
|
2012-05-16 12:16:45 +02:00
|
|
|
|
2016-05-11 15:18:07 +02:00
|
|
|
#include <QFrame>
|
2016-04-28 16:02:54 +02:00
|
|
|
|
2012-05-16 12:16:45 +02:00
|
|
|
namespace QmlProfiler {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2016-05-11 15:18:07 +02:00
|
|
|
class QmlProfilerStateWidget : public QFrame
|
2012-05-16 12:16:45 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit QmlProfilerStateWidget(QmlProfilerStateManager *stateManager,
|
2018-04-12 10:04:55 +02:00
|
|
|
QmlProfilerModelManager *modelManager,
|
|
|
|
|
QWidget *parent = nullptr);
|
2018-11-24 12:14:44 +01:00
|
|
|
~QmlProfilerStateWidget() override;
|
2012-05-16 12:16:45 +02:00
|
|
|
|
2017-09-07 14:07:10 +02:00
|
|
|
private:
|
2016-05-11 14:43:26 +02:00
|
|
|
void showText(const QString &text);
|
2012-05-16 12:16:45 +02:00
|
|
|
void updateDisplay();
|
|
|
|
|
void reposition();
|
2018-04-20 18:06:38 +02:00
|
|
|
void initialize();
|
|
|
|
|
void clear();
|
2012-05-16 12:16:45 +02:00
|
|
|
|
|
|
|
|
class QmlProfilerStateWidgetPrivate;
|
|
|
|
|
QmlProfilerStateWidgetPrivate *d;
|
|
|
|
|
};
|
|
|
|
|
|
2016-04-28 16:02:54 +02:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QmlProfiler
|