Commit 4e115e20 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Remove unused QLocale declarations

parent 0006b9c8
......@@ -177,7 +177,6 @@ AbstractProjectItem::PROJECTITEMTYPE AbstractProjectItem::itemType() const
QVariant AbstractProjectItem::data(DataType type) const
{
QVariant data;
QLocale locale;
switch (type) {
case DataName:
data = QVariant(m_name);
......
......@@ -1858,7 +1858,6 @@ bool DocumentValidator::checkMovit()
// Parse all effects in document
QDomNodeList filters = m_doc.elementsByTagName(QStringLiteral("filter"));
int max = filters.count();
QLocale locale;
for (int i = 0; i < max; ++i) {
QDomElement filt = filters.at(i).toElement();
QString filterId = filt.attribute(QStringLiteral("id"));
......
......@@ -729,7 +729,6 @@ void AnimationWidget::buildSliderWidget(const QString &paramTag, const QDomEleme
void AnimationWidget::buildRectWidget(const QString &paramTag, const QDomElement &e)
{
QLocale locale;
QDomElement na = e.firstChildElement(QStringLiteral("name"));
QString paramName = i18n(na.text().toUtf8().data());
QDomElement commentElem = e.firstChildElement(QStringLiteral("comment"));
......
......@@ -3328,7 +3328,6 @@ void MainWindow::slotPrepareRendering(bool scriptExport, bool zoneOnly, const QS
QMap <double, QString> guidesData = pCore->projectManager()->currentTimeline()->projectView()->guidesData();
QMapIterator<double, QString> g(guidesData);
QLocale locale;
while (g.hasNext()) {
g.next();
int time = (int) GenTime(g.key()).frames(project->fps());
......
......@@ -181,7 +181,7 @@ QMap<double,QString> BinController::takeGuidesData()
Mlt::Properties guidesProperties;
Mlt::Properties playlistProps(m_binPlaylist->get_properties());
guidesProperties.pass_values(playlistProps, "kdenlive:guide.");
qDebug()<<"***********\nFOUND GUIDES: "<<guidesProperties.count()<<"\n**********";
QMap <double,QString> guidesData;
for (int i = 0; i < guidesProperties.count(); i++) {
......
......@@ -670,7 +670,6 @@ void ClipPropertiesController::slotEnableForce(int state)
if (!spin || !spin2) return;
properties.insert(QStringLiteral("force_aspect_den"), QString::number(spin2->value()));
properties.insert(QStringLiteral("force_aspect_num"), QString::number(spin->value()));
QLocale locale;
properties.insert(QStringLiteral("force_aspect_ratio"), locale.toString((double) spin->value() / spin2->value()));
}
}
......@@ -728,7 +727,6 @@ void ClipPropertiesController::slotComboValueChanged()
}
QString param = box->objectName().section(QStringLiteral("_"), 0, -2);
QMap <QString, QString> properties;
QLocale locale;
properties.insert(param, QString::number(box->currentData().toInt()));
emit updateClipProperties(m_id, m_originalProperties, properties);
m_originalProperties = properties;
......
......@@ -98,8 +98,6 @@ void EffectsParameterList::removeParam(const QString &name) {
EffectsParameterList EffectsController::getEffectArgs(const ProfileInfo &info, const QDomElement &effect)
{
EffectsParameterList parameters;
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
parameters.addParam(QStringLiteral("tag"), effect.attribute(QStringLiteral("tag")));
//if (effect.hasAttribute("region")) parameters.addParam("region", effect.attribute("region"));
parameters.addParam(QStringLiteral("kdenlive_ix"), effect.attribute(QStringLiteral("kdenlive_ix")));
......
......@@ -461,8 +461,6 @@ void StopmotionWidget::slotLive(bool isOn)
capture_button->setEnabled(false);
if (isOn) {
m_frame_preview->setHidden(true);
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
MltVideoProfile profile;
QString resource;
......
......@@ -532,8 +532,6 @@ void AbstractClipItem::movedKeyframe(QDomElement effect, int newpos, int oldpos,
void AbstractClipItem::removeKeyframe(QDomElement effect, int frame)
{
if (effect.attribute(QStringLiteral("disable")) == QLatin1String("1")) return;
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
effect.setAttribute(QStringLiteral("active_keyframe"), 0);
QDomNodeList params = effect.elementsByTagName(QStringLiteral("parameter"));
for (int i = 0; i < params.count(); ++i) {
......
......@@ -202,8 +202,6 @@ void ClipItem::initEffect(ProfileInfo pInfo, QDomElement effect, int diff, int o
bool ClipItem::checkKeyFrames(int width, int height, int previousDuration, int cutPos)
{
bool clipEffectsModified = false;
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
int effectsCount = m_effectList.count();
if (effectsCount == 0) {
// reset keyframes
......
......@@ -6241,8 +6241,6 @@ void CustomTrackView::pasteClipEffects()
void CustomTrackView::adjustKeyfames(GenTime oldstart, GenTime newstart, GenTime duration, QDomElement xml)
{
// parse parameters to check if we need to adjust to the new crop start
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
QDomNodeList params = xml.elementsByTagName(QStringLiteral("parameter"));
for (int i = 0; i < params.count(); ++i) {
QDomElement e = params.item(i).toElement();
......
......@@ -364,10 +364,8 @@ void Timeline::checkDuration() {
}
void Timeline::getTransitions() {
QLocale locale;
int compositeMode = 0;
double fps = m_doc->fps();
locale.setNumberOptions(QLocale::OmitGroupSeparator);
mlt_service service = mlt_service_get_producer(m_tractor->get_service());
QScopedPointer<Mlt::Field> field(m_tractor->field());
while (service) {
......@@ -1051,10 +1049,9 @@ void Timeline::loadGuides(QMap <double, QString> guidesData)
}
}
void Timeline::getEffects(Mlt::Service &service, ClipItem *clip, int track) {
void Timeline::getEffects(Mlt::Service &service, ClipItem *clip, int track)
{
int effectNb = clip == NULL ? 0 : clip->effectsCount();
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
for (int ix = 0; ix < service.filter_count(); ++ix) {
QScopedPointer<Mlt::Filter> effect(service.filter(ix));
QDomElement clipeffect = getEffectByTag(effect->get("tag"), effect->get("kdenlive_id"));
......@@ -1098,7 +1095,8 @@ void Timeline::getEffects(Mlt::Service &service, ClipItem *clip, int track) {
}
}
QString Timeline::getKeyframes(Mlt::Service service, int &ix, QDomElement e) {
QString Timeline::getKeyframes(Mlt::Service service, int &ix, QDomElement e)
{
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
QString starttag = e.attribute(QStringLiteral("starttag"), QStringLiteral("start"));
......@@ -1149,7 +1147,8 @@ void Timeline::getSubfilters(Mlt::Filter *effect, QDomElement &currenteffect) {
}
//static
void Timeline::setParam(ProfileInfo info, QDomElement param, QString value) {
void Timeline::setParam(ProfileInfo info, QDomElement param, QString value)
{
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
//get Kdenlive scaling parameters
......
......@@ -339,7 +339,6 @@ QList <ItemInfo> Track::replaceAll(const QString &id, Mlt::Producer *original, M
QString idForVideoTrack;
QString service = original->parent().get("mlt_service");
QString idForTrack = original->parent().get("id");
QLocale locale;
int tkState = state();
if (needsDuplicate(service)) {
// We have to use the track clip duplication functions, because of audio glitches in MLT's multitrack
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment