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:
parent
f9575d6690
commit
cd6a894417
@ -41,6 +41,7 @@ void Lobby::changeEvent(QEvent *event)
|
|||||||
{
|
{
|
||||||
ui->retranslateUi(this);
|
ui->retranslateUi(this);
|
||||||
}
|
}
|
||||||
|
QWidget::changeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
Lobby::~Lobby()
|
Lobby::~Lobby()
|
||||||
|
@ -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()
|
||||||
|
@ -90,6 +90,7 @@ void MainWindow::changeEvent(QEvent *event)
|
|||||||
{
|
{
|
||||||
ui->retranslateUi(this);
|
ui->retranslateUi(this);
|
||||||
}
|
}
|
||||||
|
QMainWindow::changeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
@ -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()
|
||||||
|
@ -26,6 +26,7 @@ void ImageViewer::changeEvent(QEvent *event)
|
|||||||
{
|
{
|
||||||
ui->retranslateUi(this);
|
ui->retranslateUi(this);
|
||||||
}
|
}
|
||||||
|
QDialog::changeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageViewer::~ImageViewer()
|
ImageViewer::~ImageViewer()
|
||||||
|
@ -334,4 +334,5 @@ void CSettingsView::changeEvent(QEvent *event)
|
|||||||
{
|
{
|
||||||
ui->retranslateUi(this);
|
ui->retranslateUi(this);
|
||||||
}
|
}
|
||||||
|
QWidget::changeEvent(event);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user