aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/NativeEmbedWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina/NativeEmbedWidget.h')
-rw-r--r--src-qt5/core/libLumina/NativeEmbedWidget.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/NativeEmbedWidget.h b/src-qt5/core/libLumina/NativeEmbedWidget.h
index 07e1c4dd..78c11dfc 100644
--- a/src-qt5/core/libLumina/NativeEmbedWidget.h
+++ b/src-qt5/core/libLumina/NativeEmbedWidget.h
@@ -13,6 +13,7 @@
#include "NativeWindow.h"
#include <QWidget>
+#include <QTimer>
#include <QResizeEvent>
#include <QShowEvent>
#include <QHideEvent>
@@ -22,14 +23,17 @@ class NativeEmbedWidget : public QWidget{
Q_OBJECT
private:
NativeWindow *WIN;
+ QSize winSize;
+private slots:
//Simplification functions
- void syncWinSize(QSize);
- void syncWidgetSize(QSize);
+ void syncWinSize(QSize sz = QSize());
+ void syncWidgetSize(QSize sz);
void hideWindow();
void showWindow();
QImage windowImage(QRect geom);
+
public:
NativeEmbedWidget(QWidget *parent);
@@ -39,6 +43,7 @@ public:
public slots:
void resyncWindow();
+ void repaintWindow();
protected:
void resizeEvent(QResizeEvent *ev);
bgstack15