Move implementation out of header
[yandex-traffic] / mainwidget.hpp
index 4e29b66..65f64ab 100644 (file)
@@ -24,16 +24,7 @@ public:
     QSize sizeHint () const;
 
 protected:
-    void paintEvent(QPaintEvent *event)
-    {
-        QPainter p(this);
-        p.setBrush(QColor(0, 0, 0, 128));
-        p.setPen(Qt::NoPen);
-        p.drawRoundedRect(rect(), 10, 10);
-        p.end();
-
-        QWidget::paintEvent(event);
-    }
+    void paintEvent (QPaintEvent *event);
 };
 
 #endif /* __MAINWIDGET_H__ */