1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

LP-10 Uncrustify

This commit is contained in:
Stefan Karlsson 2015-07-13 12:51:49 +02:00
parent f3b091ebc9
commit aea3fccf7b
11 changed files with 19 additions and 16 deletions

View File

@ -301,6 +301,7 @@ inline QStringList getPluginPaths()
QStringList rc; QStringList rc;
QString pluginPath = QApplication::applicationDirPath(); QString pluginPath = QApplication::applicationDirPath();
pluginPath += QLatin1Char('/'); pluginPath += QLatin1Char('/');
pluginPath += QLatin1String(PLUGIN_REL_PATH); pluginPath += QLatin1String(PLUGIN_REL_PATH);
rc.push_back(pluginPath); rc.push_back(pluginPath);

View File

@ -41,6 +41,7 @@ namespace Utils {
QString GetDataPath() QString GetDataPath()
{ {
QString dataPath = QApplication::applicationDirPath(); QString dataPath = QApplication::applicationDirPath();
dataPath += QLatin1Char('/'); dataPath += QLatin1Char('/');
dataPath += QLatin1String(DATA_REL_PATH); dataPath += QLatin1String(DATA_REL_PATH);
dataPath += QLatin1Char('/'); dataPath += QLatin1Char('/');

View File

@ -289,6 +289,7 @@ QString MainWindow::loadStyleSheet(QString fileName)
QString style; QString style;
// ...to open the file // ...to open the file
QFile file(Utils::GetDataPath() + QString("stylesheets/") + fileName); QFile file(Utils::GetDataPath() + QString("stylesheets/") + fileName);
qDebug() << "Loading style sheet file" << file.fileName(); qDebug() << "Loading style sheet file" << file.fileName();
if (file.open(QFile::ReadOnly)) { if (file.open(QFile::ReadOnly)) {
// QTextStream... // QTextStream...