diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-09 11:40:54 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-09 11:40:54 -0500 |
| commit | e1d6f6380dc4f7719f369b48e327085b0e0f511b (patch) | |
| tree | bed1e67e0e3b15835f6293a3195bf3acfbe761f7 /src/mainwindow.h | |
| parent | 8cf3c4a3678233c37a89be38cebdaf5b8e864cb2 (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.h | 2 |
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 |
