mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
Uncrustify
This commit is contained in:
parent
62bd0115fe
commit
81050f557c
@ -274,8 +274,9 @@ QString VehicleTemplateExportDialog::fixFilenameString(QString input, int trunca
|
||||
void VehicleTemplateExportDialog::exportTemplate()
|
||||
{
|
||||
QString path = QString("%1%2%3%4").arg(Utils::PathUtils().InsertStoragePath("%%STOREPATH%%cloudconfig"))
|
||||
.arg(QDir::separator()).arg(getTypeDirectory()).arg(QDir::separator());
|
||||
.arg(QDir::separator()).arg(getTypeDirectory()).arg(QDir::separator());
|
||||
QDir dir;
|
||||
|
||||
dir.mkpath(path);
|
||||
saveTemplate(path);
|
||||
}
|
||||
@ -362,8 +363,9 @@ QString VehicleTemplateExportDialog::getTypeDirectory()
|
||||
void VehicleTemplateExportDialog::updateStatus()
|
||||
{
|
||||
bool enabled = m_autopilotConnected && ui->Name->text().length() > 3 && ui->Owner->text().length() > 2 &&
|
||||
ui->ForumNick->text().length() > 2 && ui->Size->text().length() > 0 &&
|
||||
ui->Weight->text().length() > 0;
|
||||
ui->ForumNick->text().length() > 2 && ui->Size->text().length() > 0 &&
|
||||
ui->Weight->text().length() > 0;
|
||||
|
||||
ui->exportBtn->setEnabled(enabled);
|
||||
ui->saveAsBtn->setEnabled(enabled);
|
||||
}
|
||||
|
@ -146,12 +146,16 @@ QString VehicleTemplateSelectorWidget::getTemplatePath()
|
||||
switch (m_vehicleType) {
|
||||
case VehicleConfigurationSource::VEHICLE_FIXEDWING:
|
||||
return VehicleTemplateExportDialog::EXPORT_FIXEDWING_NAME;
|
||||
|
||||
case VehicleConfigurationSource::VEHICLE_MULTI:
|
||||
return VehicleTemplateExportDialog::EXPORT_MULTI_NAME;
|
||||
|
||||
case VehicleConfigurationSource::VEHICLE_HELI:
|
||||
return VehicleTemplateExportDialog::EXPORT_HELI_NAME;
|
||||
|
||||
case VehicleConfigurationSource::VEHICLE_SURFACE:
|
||||
return VehicleTemplateExportDialog::EXPORT_SURFACE_NAME;
|
||||
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user