1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 09:45:21 +03:00

Modeledit added

This commit is contained in:
Kjell Kernen 2014-02-18 00:25:04 +01:00
parent 2616961b95
commit f617ae1362
5 changed files with 15 additions and 18 deletions

View file

@ -6,6 +6,7 @@
#include <QCheckBox>
#include <QDoubleSpinBox>
#include "helpers.h"
#include "appdata.h"
RepeatComboBox::RepeatComboBox(QWidget *parent, int & repeatParam):
QComboBox(parent),
@ -74,8 +75,7 @@ CustomFunctionsPanel::CustomFunctionsPanel(QWidget * parent, ModelData & model,
}
}
QSettings settings;
QString path = settings.value("sdPath", ".").toString();
QString path = glob.pro[glob.profileId()].sdPath();
path.append("/SOUNDS/");
QString lang = generalSettings.ttsLanguage;
if (lang.isEmpty())
@ -225,8 +225,7 @@ void CustomFunctionsPanel::playMusic()
QPushButton *playButton = qobject_cast<QPushButton*>(sender());
int index=playButton->objectName().mid(5,2).toInt();
QString function=playButton->objectName().left(4);
QSettings settings;
QString path = settings.value("sdPath", ".").toString();
QString path = glob.pro[glob.profileId()].sdPath();
QDir qd(path);
QString track;
if (qd.exists()) {