From 6cd45908c3d62f845f1847009a0c38504f0d0082 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 4 Sep 2016 21:15:39 +0200 Subject: Add Canvas base class for the Painter to draw on. This is done in preparation for a new Painter unittest. --- plugingui/window.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugingui/window.h') diff --git a/plugingui/window.h b/plugingui/window.h index 9eb9d6d..8b186e9 100644 --- a/plugingui/window.h +++ b/plugingui/window.h @@ -34,11 +34,14 @@ #include "eventhandler.h" #include "imagecache.h" -namespace GUI { +namespace GUI +{ -class Window : public Widget { +class Window + : public Widget +{ public: - Window(void* native_window); + Window(void* native_window = nullptr); ~Window(); void setFixedSize(int width, int height); @@ -74,7 +77,7 @@ protected: void updateBuffer(); // For the Painter - friend class Painter; + friend class Widget; void beginPaint(); void endPaint(); -- cgit v1.2.3