1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Call method from parent class after processing event

This commit is contained in:
Ivan Savenko 2022-12-28 17:58:39 +02:00
parent f9575d6690
commit cd6a894417
6 changed files with 7 additions and 1 deletions

View File

@ -41,6 +41,7 @@ void Lobby::changeEvent(QEvent *event)
{ {
ui->retranslateUi(this); ui->retranslateUi(this);
} }
QWidget::changeEvent(event);
} }
Lobby::~Lobby() Lobby::~Lobby()

View File

@ -29,10 +29,11 @@ LobbyRoomRequest::LobbyRoomRequest(SocketLobby & socket, const QString & room, c
void LobbyRoomRequest::changeEvent(QEvent *event) void LobbyRoomRequest::changeEvent(QEvent *event)
{ {
if ( event->type() == QEvent::LanguageChange) if (event->type() == QEvent::LanguageChange)
{ {
ui->retranslateUi(this); ui->retranslateUi(this);
} }
QDialog::changeEvent(event);
} }
LobbyRoomRequest::~LobbyRoomRequest() LobbyRoomRequest::~LobbyRoomRequest()

View File

@ -90,6 +90,7 @@ void MainWindow::changeEvent(QEvent *event)
{ {
ui->retranslateUi(this); ui->retranslateUi(this);
} }
QMainWindow::changeEvent(event);
} }
MainWindow::~MainWindow() MainWindow::~MainWindow()

View File

@ -41,6 +41,7 @@ void CModListView::changeEvent(QEvent *event)
ui->retranslateUi(this); ui->retranslateUi(this);
modModel->reloadRepositories(); modModel->reloadRepositories();
} }
QWidget::changeEvent(event);
} }
void CModListView::setupFilterModel() void CModListView::setupFilterModel()

View File

@ -26,6 +26,7 @@ void ImageViewer::changeEvent(QEvent *event)
{ {
ui->retranslateUi(this); ui->retranslateUi(this);
} }
QDialog::changeEvent(event);
} }
ImageViewer::~ImageViewer() ImageViewer::~ImageViewer()

View File

@ -334,4 +334,5 @@ void CSettingsView::changeEvent(QEvent *event)
{ {
ui->retranslateUi(this); ui->retranslateUi(this);
} }
QWidget::changeEvent(event);
} }