Fix compilation after kDebug > qDebug conversion

parent 6d8706ea
......@@ -489,7 +489,7 @@ void KdenliveSettingsDialog::initDevices()
line = stream.readLine();
}
file.close();
} else //qDebug()<<" / / / /CANNOT READ PCM";
} else qDebug()<<" / / / /CANNOT READ PCM";
}
// Add pulseaudio capture option
......
......@@ -236,7 +236,7 @@ void ProfilesDialog::slotDeleteProfile()
if (path.contains('/')) {
KIO::NetAccess::del(QUrl(path), this);
fillList();
} else //qDebug() << "//// Cannot delete profile " << path << ", does not seem to be custom one";
} else qDebug() << "//// Cannot delete profile " << path << ", does not seem to be custom one";
}
// static
......
......@@ -119,7 +119,7 @@ bool DocumentValidator::validate(const double currentVersion)
QString versionString = kdenliveDoc.attribute("version");
if (versionString.contains(',')) versionString.replace(',', '.');
version = versionString.toDouble(&ok);
if (!ok) //qDebug()<<"// CANNOT PARSE VERSION NUMBER, ERROR!";
if (!ok) qDebug()<<"// CANNOT PARSE VERSION NUMBER, ERROR!";
}
}
......
......@@ -327,7 +327,7 @@ KdenliveDoc::KdenliveDoc(const QUrl &url, const QUrl &projectFolder, QUndoGroup
CommentedTime marker(GenTime(e.attribute("time").toDouble()), e.attribute("comment"), e.attribute("type").toInt());
DocClipBase *baseClip = m_clipManager->getClipById(e.attribute("id"));
if (baseClip) baseClip->addSnapMarker(marker);
else //qDebug()<< " / / Warning, missing clip: "<< e.attribute("id");
else qDebug()<< " / / Warning, missing clip: "<< e.attribute("id");
}
}
infoXml.removeChild(markers);
......@@ -1206,7 +1206,7 @@ QString KdenliveDoc::searchFileRecursively(const QDir &dir, const QString &match
if (QString(fileHash.toHex()) == matchHash)
return file.fileName();
else
//qDebug() << filesAndDirs.at(i) << "size match but not hash";
qDebug() << filesAndDirs.at(i) << "size match but not hash";
}
}
////qDebug() << filesAndDirs.at(i) << file.size() << fileHash.toHex();
......
......@@ -413,7 +413,7 @@ void KThumb::slotGetIntraThumbs()
if (m_clipManager->pixmapCache->insertImage(key, img)) {
addedThumbs = true;
}
else //qDebug()<<"// INSERT FAILD FOR: "<<pos;
else qDebug()<<"// INSERT FAILD FOR: "<<pos;
}
}
......
......@@ -341,7 +341,7 @@ void initEffects::parseCustomEffectsFile()
} else if (base.tagName() == "effect") {
effectsMap.insert(base.firstChildElement("name").text().toLower().toUtf8().data(), base);
}
else //qDebug() << "Unsupported effect file: " << itemName;
else qDebug() << "Unsupported effect file: " << itemName;
}
foreach(const QDomElement & effect, effectsMap)
MainWindow::customEffects.append(effect);
......
......@@ -248,8 +248,7 @@ DeviceMap JogShuttle::enumerateDevices(const QString& devPath)
media_ctrl_open_dev(&mc, (char*)fileLink.toUtf8().data());
if (mc.fd > 0 && mc.device) {
devs.insert(QString(mc.device->name), devFullPath);
//qDebug() << QString(" [keys-count=%1] ").arg(
media_ctrl_get_keys_count(&mc));
qDebug() << QString(" [keys-count=%1] ").arg(media_ctrl_get_keys_count(&mc));
}
media_ctrl_close(&mc);
}
......
......@@ -563,7 +563,7 @@ void MainWindow::loadPlugins()
populateMenus(plugin);
m_pluginFileNames += fileName;
} else
//qDebug() << "Error loading plugin: " << fileName << ", " << loader.errorString();
qDebug() << "Error loading plugin: " << fileName << ", " << loader.errorString();
}
}
}
......@@ -2525,7 +2525,7 @@ int MainWindow::getNewStuff(const QString &configFile)
if (dialog->exec()) entries = dialog->changedEntries();
foreach(const KNS3::Entry & entry, entries) {
if (entry.status() == KNS3::Entry::Installed)
//qDebug() << "// Installed files: " << entry.installedFiles();
qDebug() << "// Installed files: " << entry.installedFiles();
}
delete dialog;
#else
......
......@@ -890,7 +890,7 @@ void Monitor::slotSetClipProducer(DocClipBase *clip, QPoint zone, bool forceUpda
if (clip) prod = clip->getCloneProducer();
if (render->setProducer(prod, position) == -1) {
// MLT CONSUMER is broken
kDebug(QtWarningMsg) << "ERROR, Cannot start monitor";
qWarning() << "ERROR, Cannot start monitor";
} else start();
} else {
if (m_currentClip) {
......
......@@ -626,7 +626,7 @@ void ClipManager::slotAddClipList(const QList<QUrl> &urls, const QMap <QString,
}
new AddClipCommand(m_doc, doc.documentElement(), QString::number(id), true, addClips);
}
else //qDebug()<<"// CANNOT READ FILE: "<<file;
else qDebug()<<"// CANNOT READ FILE: "<<file;
}
if (addClips->childCount() > 0) {
addClips->setText(i18np("Add clip", "Add clips", addClips->childCount()));
......
......@@ -1700,7 +1700,7 @@ void ProjectList::slotAddClip(const QString &url, const QString &groupName, cons
void ProjectList::slotAddClip(const QList <QUrl> &givenList, const QString &groupName, const QString &groupId)
{
if (!m_commandStack)
//qDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
qDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
QList <QUrl> list;
if (givenList.isEmpty()) {
......@@ -1891,7 +1891,7 @@ void ProjectList::slotRemoveInvalidProxy(const QString &id, bool durationError)
void ProjectList::slotAddColorClip()
{
if (!m_commandStack)
//qDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
qDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
QPointer<QDialog> dia = new QDialog(this);
Ui::ColorClip_UI dia_ui;
......@@ -1919,7 +1919,7 @@ void ProjectList::slotAddColorClip()
void ProjectList::slotAddSlideshowClip()
{
if (!m_commandStack)
//qDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
qDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
QPointer<SlideshowClip> dia = new SlideshowClip(m_timecode, this);
......@@ -1954,7 +1954,7 @@ void ProjectList::slotAddTitleClip()
void ProjectList::slotAddTitleTemplateClip()
{
if (!m_commandStack)
//qDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
qDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
QStringList groupInfo = getGroup();
......@@ -3686,7 +3686,7 @@ void ProjectList::processClipJob(QStringList ids, const QString&destination, boo
job->setAddClipToProject(true);
//qDebug()<<"// ADDING TRUE";
}
else //qDebug()<<"// ADDING FALSE!!!";
else qDebug()<<"// ADDING FALSE!!!";
if (job->isExclusive() && hasPendingJob(item, job->jobType)) {
delete job;
......
......@@ -1007,7 +1007,7 @@ void Render::processFileProperties()
filePropertyMap["pix_fmt"] = producer->get(query.toUtf8().constData());
filePropertyMap["colorspace"] = producer->get("meta.media.colorspace");
} else //qDebug() << " / / / / /WARNING, VIDEO CONTEXT IS NULL!!!!!!!!!!!!!!";
} else qDebug() << " / / / / /WARNING, VIDEO CONTEXT IS NULL!!!!!!!!!!!!!!";
if (producer->get_int("audio_index") > -1) {
// Get the audio_index
int index = producer->get_int("audio_index");
......@@ -1445,7 +1445,7 @@ void Render::start()
if (m_mltConsumer->is_stopped()) {
if (m_mltConsumer->start() == -1) {
//KMessageBox::error(qApp->activeWindow(), i18n("Could not create the video preview window.\nThere is something wrong with your Kdenlive install or your driver settings, please fix it."));
kDebug(QtWarningMsg) << "/ / / / CANNOT START MONITOR";
qWarning() << "/ / / / CANNOT START MONITOR";
} else {
m_mltConsumer->purge();
m_mltConsumer->set("refresh", 1);
......@@ -1652,7 +1652,7 @@ void Render::setDropFrames(bool show)
m_mltConsumer->stop();
m_mltConsumer->set("real_time", dropFrames);
if (m_mltConsumer->start() == -1) {
kDebug(QtWarningMsg) << "ERROR, Cannot start monitor";
qWarning() << "ERROR, Cannot start monitor";
}
}
......@@ -1665,7 +1665,7 @@ void Render::setConsumerProperty(const QString &name, const QString &value)
m_mltConsumer->stop();
m_mltConsumer->set(name.toUtf8().constData(), value.toUtf8().constData());
if (m_isActive && m_mltConsumer->start() == -1) {
kDebug(QtWarningMsg) << "ERROR, Cannot start monitor";
qWarning() << "ERROR, Cannot start monitor";
}
}
......@@ -3770,7 +3770,7 @@ void Render::mltPlantTransition(Mlt::Field *field, Mlt::Transition &tr, int a_tr
trList.append(cp);
field->disconnect_service(transition);
}
//else //qDebug() << "// FOUND TRANS OK, "<<resource<< ", A_: " << aTrack << ", B_ "<<bTrack;
//else qDebug() << "// FOUND TRANS OK, "<<resource<< ", A_: " << aTrack << ", B_ "<<bTrack;
if (nextservice == NULL) break;
properties = MLT_SERVICE_PROPERTIES(nextservice);
......
......@@ -2352,9 +2352,9 @@ ClipItem *CustomTrackView::cutClip(const ItemInfo &info, const GenTime &cutTime,
if (!item || cutTime >= item->endPos() || cutTime <= item->startPos()) {
emit displayMessage(i18n("Cannot find clip to cut"), ErrorMessage);
if (item)
//qDebug() << "///////// ERROR CUTTING CLIP : (" << item->startPos().frames(25) << '-' << item->endPos().frames(25) << "), INFO: (" << info.startPos.frames(25) << '-' << info.endPos.frames(25) << ')' << ", CUT: " << cutTime.frames(25);
qDebug() << "///////// ERROR CUTTING CLIP : (" << item->startPos().frames(25) << '-' << item->endPos().frames(25) << "), INFO: (" << info.startPos.frames(25) << '-' << info.endPos.frames(25) << ')' << ", CUT: " << cutTime.frames(25);
else
//qDebug() << "/// ERROR NO CLIP at: " << info.startPos.frames(m_document->fps()) << ", track: " << info.track;
qDebug() << "/// ERROR NO CLIP at: " << info.startPos.frames(m_document->fps()) << ", track: " << info.track;
m_blockRefresh = false;
return NULL;
}
......@@ -3019,7 +3019,7 @@ void CustomTrackView::addTrack(const TrackInfo &type, int ix)
info = transitionInfos.at(i);
Transition *tr = getTransitionItem(info);
if (tr) tr->setForcedTrack(info.forceTrack, info.a_track);
else //qDebug()<<"// Cannot update TRANSITION AT: "<<info.b_track<<" / "<<info.startPos.frames(m_document->fps());
else qDebug()<<"// Cannot update TRANSITION AT: "<<info.b_track<<" / "<<info.startPos.frames(m_document->fps());
}
m_selectionMutex.unlock();
resetSelectionGroup(false);
......@@ -4143,8 +4143,8 @@ void CustomTrackView::deleteClip(ItemInfo info, bool refresh)
{
ClipItem *item = getClipItemAt((int) info.startPos.frames(m_document->fps()), info.track);
m_ct++;
if (!item) //qDebug()<<"// PROBLEM FINDING CLIP ITEM TO REMOVVE!!!!!!!!!";
else //qDebug()<<"// deleting CLIP: "<<info.startPos.frames(m_document->fps())<<", "<<item->baseClip()->fileURL();
if (!item) qDebug()<<"// PROBLEM FINDING CLIP ITEM TO REMOVVE!!!!!!!!!";
else qDebug()<<"// deleting CLIP: "<<info.startPos.frames(m_document->fps())<<", "<<item->baseClip()->fileURL();
//m_document->renderer()->saveSceneList(QString("/tmp/error%1.mlt").arg(m_ct), QDomElement());
if (!item || m_document->renderer()->mltRemoveClip(m_document->tracksCount() - info.track, info.startPos) == false) {
emit displayMessage(i18n("Error removing clip at %1 on track %2", m_document->timecode().getTimecodeFromFrames(info.startPos.frames(m_document->fps())), info.track), ErrorMessage);
......@@ -4746,7 +4746,7 @@ void CustomTrackView::moveGroup(QList<ItemInfo> startClip, QList<ItemInfo> start
m_selectionGroup->addItem(clip);
}
m_document->renderer()->mltRemoveClip(m_document->tracksCount() - startClip.at(i).track, startClip.at(i).startPos);
} else //qDebug() << "//MISSING CLIP AT: " << startClip.at(i).startPos.frames(25);
} else qDebug() << "//MISSING CLIP AT: " << startClip.at(i).startPos.frames(25);
}
for (int i = 0; i < startTransition.count(); ++i) {
if (reverseMove) {
......@@ -4762,7 +4762,7 @@ void CustomTrackView::moveGroup(QList<ItemInfo> startClip, QList<ItemInfo> start
m_selectionGroup->addItem(tr);
}
m_document->renderer()->mltDeleteTransition(tr->transitionTag(), tr->transitionEndTrack(), m_document->tracksCount() - startTransition.at(i).track, startTransition.at(i).startPos, startTransition.at(i).endPos, tr->toXML());
} else //qDebug() << "//MISSING TRANSITION AT: " << startTransition.at(i).startPos.frames(25);
} else qDebug() << "//MISSING TRANSITION AT: " << startTransition.at(i).startPos.frames(25);
}
m_document->renderer()->blockSignals(false);
......@@ -4835,7 +4835,7 @@ void CustomTrackView::moveGroup(QList<ItemInfo> startClip, QList<ItemInfo> start
KdenliveSettings::setSnaptopoints(snap);
m_document->renderer()->doRefresh();
} else //qDebug() << "///////// WARNING; NO GROUP TO MOVE";
} else qDebug() << "///////// WARNING; NO GROUP TO MOVE";
}
void CustomTrackView::moveTransition(const ItemInfo &start, const ItemInfo &end, bool refresh)
......
......@@ -133,7 +133,7 @@ void MarkerDialog::slotUpdateThumb()
if (!p.isNull())
clip_thumb->setPixmap(p);
else
//qDebug() << "!!!!!!!!!!! ERROR CREATING THUMB";
qDebug() << "!!!!!!!!!!! ERROR CREATING THUMB";
}
QImage MarkerDialog::markerImage() const
......
Markdown is supported
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