From 324e221bee71b4fe4d525626acfa8edbcec3f16b Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 11 May 2016 15:18:07 +0200 Subject: 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 --- src/plugins/qmlprofiler/qmlprofilerstatewidget.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/plugins/qmlprofiler/qmlprofilerstatewidget.h') diff --git a/src/plugins/qmlprofiler/qmlprofilerstatewidget.h b/src/plugins/qmlprofiler/qmlprofilerstatewidget.h index 6ff6e7e3b35..73ba88ae4bb 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatewidget.h +++ b/src/plugins/qmlprofiler/qmlprofilerstatewidget.h @@ -28,12 +28,12 @@ #include "qmlprofilerstatemanager.h" #include "qmlprofilermodelmanager.h" -#include +#include 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; -- cgit v1.2.3