summaryrefslogtreecommitdiff
path: root/plugingui/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/window.h')
-rw-r--r--plugingui/window.h11
1 files changed, 7 insertions, 4 deletions
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();