... | ... | @@ -130,7 +130,31 @@ The `.kdenlive` file is deliberately an MLT XML file and not a separate file for |
|
|
Next step to fix the decimal separator issue is to run some tests on Linux and Windows with different locale settings to see if the decimal separator can be controlled.
|
|
|
|
|
|
* Check if locale settings in Kdenlive affect the locale of libraries when they are called
|
|
|
* Test library specific locale settings (e.g. in MLT)
|
|
|
* Test library specific locale settings (e.g. in MLT) → https://invent.kde.org/eugster/decimal-separator
|
|
|
|
|
|
|
|
|
### Notes
|
|
|
|
|
|
Typical possibly problematic code → replace the string map
|
|
|
|
|
|
```c++
|
|
|
void ClipPropertiesController::slotAspectValueChanged(int)
|
|
|
{
|
|
|
auto *spin = findChild<QSpinBox *>(QStringLiteral("force_aspect_num_value"));
|
|
|
auto *spin2 = findChild<QSpinBox *>(QStringLiteral("force_aspect_den_value"));
|
|
|
if ((spin == nullptr) || (spin2 == nullptr)) {
|
|
|
return;
|
|
|
}
|
|
|
QMap<QString, QString> properties;
|
|
|
properties.insert(QStringLiteral("force_aspect_den"), QString::number(spin2->value()));
|
|
|
properties.insert(QStringLiteral("force_aspect_num"), QString::number(spin->value()));
|
|
|
QLocale locale;
|
|
|
locale.setNumberOptions(QLocale::OmitGroupSeparator);
|
|
|
properties.insert(QStringLiteral("force_aspect_ratio"), locale.toString((double)spin->value() / spin2->value()));
|
|
|
emit updateClipProperties(m_id, m_originalProperties, properties);
|
|
|
m_originalProperties = properties;
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
[mlt-props]: https://www.mltframework.org/docs/framework/#service-properties |
|
|
\ No newline at end of file |