1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-07 01:37:08 +02:00

Cleanup spaces and pragma once

This commit is contained in:
kelteseth 2018-02-27 14:07:50 +01:00
parent 682b222669
commit 0d1141d3f1
3 changed files with 10 additions and 16 deletions

View File

@ -1,5 +1,4 @@
#ifndef INSTALLEDLISTMODEL_H #pragma once
#define INSTALLEDLISTMODEL_H
#include "profilelistmodel.h" #include "profilelistmodel.h"
#include "projectfile.h" #include "projectfile.h"
@ -76,4 +75,4 @@ private:
QUrl m_absoluteStoragePath; QUrl m_absoluteStoragePath;
}; };
#endif // INSTALLEDLISTMODEL_H

View File

@ -3,7 +3,6 @@
ProjectFile::ProjectFile(QJsonObject obj, QString folderName, QUrl absolutePath) ProjectFile::ProjectFile(QJsonObject obj, QString folderName, QUrl absolutePath)
{ {
if (obj.contains("description")) if (obj.contains("description"))
m_description = obj.value("description"); m_description = obj.value("description");
@ -23,7 +22,7 @@ ProjectFile::ProjectFile(QJsonObject obj, QString folderName, QUrl absolutePath)
m_type = "video"; m_type = "video";
} else if (tmp == "widget") { } else if (tmp == "widget") {
m_type = "widget"; m_type = "widget";
}else if (tmp == "qmlscene") { } else if (tmp == "qmlscene") {
m_type = "qmlScene"; m_type = "qmlScene";
} }
} }
@ -35,21 +34,18 @@ ProjectFile::ProjectFile(QJsonObject obj, QString folderName, QUrl absolutePath)
ProjectFile::ProjectFile() ProjectFile::ProjectFile()
{ {
} }
ProjectFile::~ProjectFile() ProjectFile::~ProjectFile()
{ {
} }
QUrl ProjectFile::absoluteStoragePath() const QUrl ProjectFile::absoluteStoragePath() const
{ {
return m_absoluteStoragePath; return m_absoluteStoragePath;
} }
void ProjectFile::setAbsoluteStoragePath(const QUrl &absoluteStoragePath) void ProjectFile::setAbsoluteStoragePath(const QUrl& absoluteStoragePath)
{ {
m_absoluteStoragePath = absoluteStoragePath; m_absoluteStoragePath = absoluteStoragePath;
} }
@ -59,7 +55,7 @@ QString ProjectFile::folderId() const
return m_folderId; return m_folderId;
} }
void ProjectFile::setFolderId(const QString &folderId) void ProjectFile::setFolderId(const QString& folderId)
{ {
m_folderId = folderId; m_folderId = folderId;
} }
@ -69,7 +65,7 @@ QVariant ProjectFile::title() const
return m_title; return m_title;
} }
void ProjectFile::setTitle(const QVariant &title) void ProjectFile::setTitle(const QVariant& title)
{ {
m_title = title; m_title = title;
} }
@ -79,7 +75,7 @@ QVariant ProjectFile::preview() const
return m_preview; return m_preview;
} }
void ProjectFile::setPreview(const QVariant &preview) void ProjectFile::setPreview(const QVariant& preview)
{ {
m_preview = preview; m_preview = preview;
} }
@ -89,7 +85,7 @@ QVariant ProjectFile::file() const
return m_file; return m_file;
} }
void ProjectFile::setFile(const QVariant &file) void ProjectFile::setFile(const QVariant& file)
{ {
m_file = file; m_file = file;
} }
@ -99,7 +95,7 @@ QVariant ProjectFile::description() const
return m_description; return m_description;
} }
void ProjectFile::setDescription(const QVariant &description) void ProjectFile::setDescription(const QVariant& description)
{ {
m_description = description; m_description = description;
} }

View File

@ -1,5 +1,4 @@
#pragma once
#include <QObject> #include <QObject>
#include <QLocalSocket> #include <QLocalSocket>