1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge remote-tracking branch 'PKEv/fix_save_position_when_moving_widget'

This commit is contained in:
agilob 2015-10-08 20:39:28 +01:00
commit 6e0c0d1210
No known key found for this signature in database
GPG Key ID: 296F0B764741106C
2 changed files with 11 additions and 0 deletions

View File

@ -460,6 +460,16 @@ Widget* Widget::getInstance()
return instance;
}
void Widget::moveEvent(QMoveEvent *event)
{
if (event->type() == QEvent::Move)
{
saveWindowGeometry();
saveSplitterGeometry();
}
QWidget::moveEvent(event);
}
void Widget::closeEvent(QCloseEvent *event)
{
if (Settings::getInstance().getShowSystemTray() && Settings::getInstance().getCloseToTray() == true)

View File

@ -157,6 +157,7 @@ protected:
virtual void closeEvent(QCloseEvent *event) final override;
virtual void changeEvent(QEvent *event) final override;
virtual void resizeEvent(QResizeEvent *event) final override;
virtual void moveEvent(QMoveEvent *event) final override;
private slots:
void onAddClicked();