forked from qt-creator/qt-creator
QmlProfiler: Simplify painting of state widget
There is no reason to have an elaborate painting routine with rounded corners and shadows. It doesn't fit the new "flat" paradigm and it's unnecessarily complex. Change-Id: I83ace95fdcccfc4cc41b17640a10154f7f64f89c Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -28,12 +28,12 @@
|
||||
#include "qmlprofilerstatemanager.h"
|
||||
#include "qmlprofilermodelmanager.h"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QFrame>
|
||||
|
||||
namespace QmlProfiler {
|
||||
namespace Internal {
|
||||
|
||||
class QmlProfilerStateWidget : public QWidget
|
||||
class QmlProfilerStateWidget : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -46,9 +46,6 @@ private slots:
|
||||
void updateDisplay();
|
||||
void reposition();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event);
|
||||
|
||||
private:
|
||||
class QmlProfilerStateWidgetPrivate;
|
||||
QmlProfilerStateWidgetPrivate *d;
|
||||
|
||||
Reference in New Issue
Block a user