mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refactor: Fix Qt deprecation warnings
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user