1
0
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:
m_thread 2015-07-16 16:53:29 +02:00
parent fd3eaa2fef
commit 4918f61054
2 changed files with 12 additions and 8 deletions

View File

@ -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);

View File

@ -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;
}