summaryrefslogtreecommitdiff
path: root/vcl/unx/kde5/KDE5SalGraphics.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/kde5/KDE5SalGraphics.hxx')
-rw-r--r--vcl/unx/kde5/KDE5SalGraphics.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/unx/kde5/KDE5SalGraphics.hxx b/vcl/unx/kde5/KDE5SalGraphics.hxx
index 811e4953c323..298d2100fe0f 100644
--- a/vcl/unx/kde5/KDE5SalGraphics.hxx
+++ b/vcl/unx/kde5/KDE5SalGraphics.hxx
@@ -24,15 +24,19 @@
#include <rtl/string.hxx>
#include <unx/saldisp.hxx>
#include <unx/salgdi.h>
+#include <headless/svpgdi.hxx>
#include <QtGui/QImage>
+class KDE5SalFrame;
+
/**
* Handles native graphics requests and performs the needed drawing operations.
*/
-class KDE5SalGraphics : public X11SalGraphics
+class KDE5SalGraphics : public SvpSalGraphics
{
public:
+ KDE5SalGraphics( KDE5SalFrame *pFrame, QWidget *pWindow);
virtual bool IsNativeControlSupported( ControlType, ControlPart ) override;
virtual bool hitTestNativeControl( ControlType, ControlPart,
@@ -46,6 +50,9 @@ public:
const OUString&, tools::Rectangle&, tools::Rectangle& ) override;
private:
+ QWidget *m_pWindow;
+ KDE5SalFrame *m_pFrame;
+
std::unique_ptr<QImage> m_image;
QRect lastPopupRect;
};