mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
eaf44c45d5
commit
0152937eb4
|
@ -451,6 +451,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