// load proxy profiles
- QString profileFile = KStandardDirs::locateLocal("appdata", "encodingprofiles.rc");
- KConfig conf(profileFile, KConfig::SimpleConfig);
+ KConfig conf("encodingprofiles.rc", KConfig::FullConfig, "appdata");
KConfigGroup group(&conf, "proxy");
QMap <QString, QString> values = group.entryMap();
QMapIterator<QString, QString> k(values);
// List all files that are used in the project. That also means:
// images included in slideshow and titles, files in playlist clips
- // TODO: images used in luma transitions, files used for LADSPA effects?
+ // TODO: images used in luma transitions?
// Setup categories
QTreeWidgetItem *videos = new QTreeWidgetItem(files_list, QStringList() << i18n("Video clips"));
void ProjectSettings::slotUpdateDisplay()
{
+ QLocale locale;
QString currentProfile = profiles_list->itemData(profiles_list->currentIndex()).toString();
QMap< QString, QString > values = ProfilesDialog::getSettingsFromFile(currentProfile);
p_size->setText(values.value("width") + 'x' + values.value("height"));
p_display->setText(values.value("display_aspect_num") + '/' + values.value("display_aspect_den"));
if (values.value("progressive").toInt() == 0) {
p_progressive->setText(i18n("Interlaced (%1 fields per second)",
- QString::number((double)2 * values.value("frame_rate_num").toInt() / values.value("frame_rate_den").toInt(), 'f', 2)));
+ locale.toString((double)2 * values.value("frame_rate_num").toInt() / values.value("frame_rate_den").toInt(), 'f', 2)));
} else {
p_progressive->setText(i18n("Progressive"));
}