refactor: Fix Qt deprecation warnings

This commit is contained in:
Lars Toenning
2025-08-29 23:11:21 +02:00
parent 7e79fa0b96
commit a0101ef943
34 changed files with 148 additions and 159 deletions

View File

@@ -113,7 +113,7 @@ namespace swift::gui::components
this->setForceSmall(true);
// Aircraft previews
connect(ui->cb_AircraftIconDisplayed, &QCheckBox::stateChanged, this,
connect(ui->cb_AircraftIconDisplayed, &QCheckBox::checkStateChanged, this,
&CMappingComponent::onModelPreviewChanged);
// model string completer
@@ -416,7 +416,7 @@ namespace swift::gui::components
this->showOverlayHTMLMessage(msg, 3s);
}
void CMappingComponent::onModelPreviewChanged(int state)
void CMappingComponent::onModelPreviewChanged(Qt::CheckState state)
{
Q_UNUSED(state);
this->closeOverlay();