diff options
author | Bea Lam <bea.lam@nokia.com> | 2009-10-27 05:43:23 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2009-10-27 05:43:23 (GMT) |
commit | cc4bca61687f6441984ccc58ad177d24b6d3e92f (patch) | |
tree | c861eadc58164b58a92b6c4a2c67ef16ac7a412c /tools/qmldebugger/standalone/canvasframerate.h | |
parent | b5b6861dd1a82ea9be9b2d2f89ba5cc9dea150ac (diff) | |
download | Qt-cc4bca61687f6441984ccc58ad177d24b6d3e92f.zip Qt-cc4bca61687f6441984ccc58ad177d24b6d3e92f.tar.gz Qt-cc4bca61687f6441984ccc58ad177d24b6d3e92f.tar.bz2 |
Move qmldebugger/ into qmldebugger/standalone dir.
Diffstat (limited to 'tools/qmldebugger/standalone/canvasframerate.h')
-rw-r--r-- | tools/qmldebugger/standalone/canvasframerate.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tools/qmldebugger/standalone/canvasframerate.h b/tools/qmldebugger/standalone/canvasframerate.h new file mode 100644 index 0000000..6c1ff9f --- /dev/null +++ b/tools/qmldebugger/standalone/canvasframerate.h @@ -0,0 +1,46 @@ +#ifndef CANVASFRAMERATE_H +#define CANVASFRAMERATE_H + +#include <QtCore/qpointer.h> +#include <QtGui/qwidget.h> + +#include <QtDeclarative/qmldebugclient.h> + +QT_BEGIN_NAMESPACE + +class QTabWidget; +class QSpinBox; +class QCheckBox; + +class CanvasFrameRatePlugin; + +class CanvasFrameRate : public QWidget +{ + Q_OBJECT +public: + CanvasFrameRate(QWidget *parent = 0); + + void reset(QmlDebugConnection *conn); + + void setSizeHint(const QSize &); + virtual QSize sizeHint() const; + +private slots: + void newTab(); + void enabledStateChanged(int); + void connectionStateChanged(QAbstractSocket::SocketState state); + +private: + void handleConnected(QmlDebugConnection *conn); + + QTabWidget *m_tabs; + QSpinBox *m_spin; + CanvasFrameRatePlugin *m_plugin; + QSize m_sizeHint; + QCheckBox *m_enabledCheckBox; +}; + +QT_END_NAMESPACE + +#endif // CANVASFRAMERATE_H + |