aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldebug/qqmlpreviewclient_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-07-11 09:12:00 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-07-18 07:45:24 +0000
commitdde49f989e6f77a8db87d7fafc2d4ced34113135 (patch)
tree5684c1e0e166e5dd5d575697fde728f81f00c289 /src/qmldebug/qqmlpreviewclient_p.h
parent7bf74dbddb25d48e267788c02ee7d06288bfada9 (diff)
QML Preview: Add a frames per second counter
It is instructive to the client to know how many frames per second the current QML can achieve in the preview. Change-Id: I8b73e2b5218410d903a07dfe27c038663c84fdee Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qmldebug/qqmlpreviewclient_p.h')
-rw-r--r--src/qmldebug/qqmlpreviewclient_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qmldebug/qqmlpreviewclient_p.h b/src/qmldebug/qqmlpreviewclient_p.h
index 49d147c866..d79ecefe32 100644
--- a/src/qmldebug/qqmlpreviewclient_p.h
+++ b/src/qmldebug/qqmlpreviewclient_p.h
@@ -71,7 +71,8 @@ public:
Rerun,
Directory,
ClearCache,
- Zoom
+ Zoom,
+ Fps
};
QQmlPreviewClient(QQmlDebugConnection *parent);
@@ -88,6 +89,7 @@ public:
signals:
void request(const QString &path);
void error(const QString &message);
+ void fps(quint16 frames);
};
QT_END_NAMESPACE