summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <jb@kdenlive.org>2016-12-03 12:36:24 (GMT)
committerJean-Baptiste Mardelle <jb@kdenlive.org>2016-12-03 12:36:24 (GMT)
commit4e115e20d62303d539a2c5a3356ec392f4a31cf7 (patch)
tree1c6fc0254f985572e28f8c72987c5a9ecc41a203
parent0006b9c8e9bdf21e8b7252d2833f33849f67ca4a (diff)
Remove unused QLocale declarations
-rw-r--r--src/bin/abstractprojectitem.cpp1
-rw-r--r--src/doc/documentvalidator.cpp1
-rw-r--r--src/effectstack/widgets/animationwidget.cpp1
-rw-r--r--src/mainwindow.cpp1
-rw-r--r--src/mltcontroller/bincontroller.cpp2
-rw-r--r--src/mltcontroller/clippropertiescontroller.cpp2
-rw-r--r--src/mltcontroller/effectscontroller.cpp2
-rw-r--r--src/stopmotion/stopmotion.cpp2
-rw-r--r--src/timeline/abstractclipitem.cpp2
-rw-r--r--src/timeline/clipitem.cpp2
-rw-r--r--src/timeline/customtrackview.cpp2
-rw-r--r--src/timeline/timeline.cpp13
-rw-r--r--src/timeline/track.cpp1
13 files changed, 7 insertions, 25 deletions
diff --git a/src/bin/abstractprojectitem.cpp b/src/bin/abstractprojectitem.cpp
index c12a3ba..3e8230b 100644
--- a/src/bin/abstractprojectitem.cpp
+++ b/src/bin/abstractprojectitem.cpp
@@ -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);
diff --git a/src/doc/documentvalidator.cpp b/src/doc/documentvalidator.cpp
index 7e524d6..5139311 100644
--- a/src/doc/documentvalidator.cpp
+++ b/src/doc/documentvalidator.cpp
@@ -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"));
diff --git a/src/effectstack/widgets/animationwidget.cpp b/src/effectstack/widgets/animationwidget.cpp
index aaffa78..9f52e0d 100644
--- a/src/effectstack/widgets/animationwidget.cpp
+++ b/src/effectstack/widgets/animationwidget.cpp
@@ -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"));
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index dd3203b..db185af 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -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());
diff --git a/src/mltcontroller/bincontroller.cpp b/src/mltcontroller/bincontroller.cpp
index a589e58..7d3eec0 100644
--- a/src/mltcontroller/bincontroller.cpp
+++ b/src/mltcontroller/bincontroller.cpp
@@ -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++) {
diff --git a/src/mltcontroller/clippropertiescontroller.cpp b/src/mltcontroller/clippropertiescontroller.cpp
index 1e0a340..9be4e97 100644
--- a/src/mltcontroller/clippropertiescontroller.cpp
+++ b/src/mltcontroller/clippropertiescontroller.cpp
@@ -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;
diff --git a/src/mltcontroller/effectscontroller.cpp b/src/mltcontroller/effectscontroller.cpp
index 026092f..2cdb610 100644
--- a/src/mltcontroller/effectscontroller.cpp
+++ b/src/mltcontroller/effectscontroller.cpp
@@ -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")));
diff --git a/src/stopmotion/stopmotion.cpp b/src/stopmotion/stopmotion.cpp
index e0a7af6..d73db20 100644
--- a/src/stopmotion/stopmotion.cpp
+++ b/src/stopmotion/stopmotion.cpp
@@ -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;
diff --git a/src/timeline/abstractclipitem.cpp b/src/timeline/abstractclipitem.cpp
index 4f4a876..963ed12 100644
--- a/src/timeline/abstractclipitem.cpp
+++ b/src/timeline/abstractclipitem.cpp
@@ -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) {
diff --git a/src/timeline/clipitem.cpp b/src/timeline/clipitem.cpp
index 687b978..9b4dd7f 100644
--- a/src/timeline/clipitem.cpp
+++ b/src/timeline/clipitem.cpp
@@ -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
diff --git a/src/timeline/customtrackview.cpp b/src/timeline/customtrackview.cpp
index 71736aa..fbbc4d4 100644
--- a/src/timeline/customtrackview.cpp
+++ b/src/timeline/customtrackview.cpp
@@ -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();
diff --git a/src/timeline/timeline.cpp b/src/timeline/timeline.cpp
index dcccfba..827e3b1 100644
--- a/src/timeline/timeline.cpp
+++ b/src/timeline/timeline.cpp
@@ -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
diff --git a/src/timeline/track.cpp b/src/timeline/track.cpp
index 43ce2ad..9116746 100644
--- a/src/timeline/track.cpp
+++ b/src/timeline/track.cpp
@@ -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