QmlProfiler: state dialog as floating widget

Change-Id: I48ff1d729e49347881c82c7bd066d30ecaca47a5
Reviewed-by: Simjees Abraham <simjees.abraham@nokia.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
This commit is contained in:
Christiaan Janssen
2012-05-16 12:16:45 +02:00
parent a4f486b8fb
commit f1f8706578
11 changed files with 313 additions and 148 deletions

View File

@@ -0,0 +1,37 @@
#ifndef QMLPROFILERSTATEWIDGET_H
#define QMLPROFILERSTATEWIDGET_H
#include <QWidget>
#include "qmlprofilerstatemanager.h"
#include "qmlprofilerdatamodel.h"
namespace QmlProfiler {
namespace Internal {
class QmlProfilerStateWidget : public QWidget
{
Q_OBJECT
public:
explicit QmlProfilerStateWidget(QmlProfilerStateManager *stateManager,
QmlProfilerDataModel *dataModel, QWidget *parent = 0);
~QmlProfilerStateWidget();
private slots:
void updateDisplay();
void dataStateChanged();
void profilerStateChanged();
void reposition();
protected:
void paintEvent(QPaintEvent *event);
private:
class QmlProfilerStateWidgetPrivate;
QmlProfilerStateWidgetPrivate *d;
};
}
}
#endif // QMLPROFILERSTATEWIDGET_H