mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T264, sued "new signal syntax" with some QShortcuts and as a result made some slots "normal functions"
This commit is contained in:
@@ -87,10 +87,10 @@ namespace BlackGui
|
||||
{
|
||||
ui->comp_SimulatorSelector->setValue(simulator);
|
||||
ui->le_Simulator->setText(simulator.toQString(true));
|
||||
const QPointer<CDbOwnModelSetComponent> guard(this);
|
||||
const QPointer<CDbOwnModelSetComponent> myself(this);
|
||||
QTimer::singleShot(500, [ = ]()
|
||||
{
|
||||
if (guard.isNull() || !sApp || sApp->isShuttingDown()) { return; }
|
||||
if (myself.isNull() || !sApp || sApp->isShuttingDown()) { return; }
|
||||
this->updateViewToCurrentModels();
|
||||
});
|
||||
}
|
||||
@@ -274,7 +274,8 @@ namespace BlackGui
|
||||
|
||||
void CDbOwnModelSetComponent::viewModelChanged()
|
||||
{
|
||||
ui->pb_SaveAsSetForSimulator->setEnabled(true);
|
||||
const bool hasData = ui->tvp_OwnModelSet->rowCount() > 0;
|
||||
ui->pb_SaveAsSetForSimulator->setEnabled(hasData);
|
||||
}
|
||||
|
||||
void CDbOwnModelSetComponent::setSaveFileName(const CSimulatorInfo &simulator)
|
||||
|
||||
Reference in New Issue
Block a user