mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
LP-16 Uncrustified.
This commit is contained in:
parent
fd3eaa2fef
commit
4918f61054
@ -120,6 +120,7 @@ void VehicleTemplateSelectorWidget::addTemplate()
|
||||
{
|
||||
QString path = QFileDialog::getOpenFileName(this, tr("Add settings"), QDir::homePath(),
|
||||
tr("Vehicle Template Files (*.vtmpl *.optmpl)"));
|
||||
|
||||
if (path != NULL) {
|
||||
QFile file(path);
|
||||
|
||||
|
@ -39,24 +39,27 @@ class VehicleTemplateSelectorWidget;
|
||||
class VehicleTemplate {
|
||||
public:
|
||||
VehicleTemplate(QJsonObject *templateObject, bool editable, QString templatePath) :
|
||||
m_templateObject(templateObject), m_editable(editable), m_templatePath(templatePath) {
|
||||
}
|
||||
m_templateObject(templateObject), m_editable(editable), m_templatePath(templatePath) {}
|
||||
|
||||
~VehicleTemplate() {
|
||||
~VehicleTemplate()
|
||||
{
|
||||
if (m_templateObject) {
|
||||
delete m_templateObject;
|
||||
}
|
||||
}
|
||||
|
||||
QJsonObject *templateObject() {
|
||||
QJsonObject *templateObject()
|
||||
{
|
||||
return m_templateObject;
|
||||
}
|
||||
|
||||
bool editable() {
|
||||
bool editable()
|
||||
{
|
||||
return m_editable;
|
||||
}
|
||||
|
||||
QString templatePath() {
|
||||
QString templatePath()
|
||||
{
|
||||
return m_templatePath;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user