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:
parent
f3b091ebc9
commit
aea3fccf7b
@ -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);
|
||||||
|
@ -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('/');
|
||||||
|
@ -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...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user