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:
commit
6e0c0d1210
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user