summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-09 11:40:54 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-12-09 11:40:54 -0500
commite1d6f6380dc4f7719f369b48e327085b0e0f511b (patch)
treebed1e67e0e3b15835f6293a3195bf3acfbe761f7 /src/mainwindow.h
parent8cf3c4a3678233c37a89be38cebdaf5b8e864cb2 (diff)
use paintEvent() to allow interactive resize because showEvent() is too early
bumped to rc2
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 4adab809..8f000983 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -189,6 +189,7 @@ signals:
protected:
virtual void showEvent(QShowEvent *event);
+ virtual void paintEvent(QPaintEvent* event);
virtual void closeEvent(QCloseEvent *event);
virtual bool eventFilter(QObject *obj, QEvent *event);
virtual void resizeEvent(QResizeEvent *event);
@@ -312,6 +313,7 @@ private:
Ui::MainWindow *ui;
bool m_WasVisible;
+ bool m_FirstPaint;
// last separator on the toolbar, used to add spacer for right-alignment and
// as an insert point for executables