From: Jean-Baptiste Mardelle Date: Sun, 28 Dec 2008 18:21:28 +0000 (+0000) Subject: Small string cleanup as recommended by jmpoure X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8c70676956d344c5276004dd7e59f55b51207e7f;p=kdenlive Small string cleanup as recommended by jmpoure svn path=/branches/KDE4/; revision=2842 --- diff --git a/src/kdenlivedoc.cpp b/src/kdenlivedoc.cpp index 61351c3a..a9b12106 100644 --- a/src/kdenlivedoc.cpp +++ b/src/kdenlivedoc.cpp @@ -1161,12 +1161,12 @@ void KdenliveDoc::addClip(QDomElement elem, QString clipId, bool createClipItem) KMessageBox::ButtonCode action = KMessageBox::No; if (!size.isEmpty() && !hash.isEmpty()) { if (!m_searchFolder.isEmpty()) newpath = searchFileRecursively(m_searchFolder, size, hash); - else action = (KMessageBox::ButtonCode)KMessageBox::messageBox(kapp->activeWindow(), KMessageBox::WarningYesNo, i18n("Clip %1
is invalid, what do you want to do?", path), i18n("File not found"), KGuiItem(i18n("Search automatically")), /*KGuiItem(i18n("Remove from project")), */KGuiItem(i18n("Keep as placeholder"))); + else action = (KMessageBox::ButtonCode)KMessageBox::messageBox(kapp->activeWindow(), KMessageBox::WarningYesNo, i18n("Clip %1
is invalid, what do you want to do?", path), i18n("File not found"), KGuiItem(i18n("Search automatically")), /*KGuiItem(i18n("Remove from project")), */KGuiItem(i18n("Keep as placeholder"))); } else { if (elem.attribute("type").toInt() == SLIDESHOW) { if (KMessageBox::messageBox(kapp->activeWindow(), KMessageBox::WarningYesNo, i18n("Clip %1
is invalid or missing, what do you want to do?", path), i18n("File not found"), KGuiItem(i18n("Search manually")), /*KGuiItem(i18n("Remove from project")),*/ KGuiItem(i18n("Keep as placeholder"))) == KMessageBox::Yes) newpath = KFileDialog::getExistingDirectory(KUrl("kfiledialog:///clipfolder"), kapp->activeWindow(), i18n("Looking for %1", path)); - } else if (KMessageBox::messageBox(kapp->activeWindow(), KMessageBox::WarningYesNo, i18n("Clip %1
is invalid or missing, what do you want to do?", path), i18n("File not found"), KGuiItem(i18n("Search manually")), /*KGuiItem(i18n("Remove from project")),*/ KGuiItem(i18n("Keep as placeholder"))) == KMessageBox::Yes) + } else if (KMessageBox::messageBox(kapp->activeWindow(), KMessageBox::WarningYesNo, i18n("Clip %1
is invalid or missing, what do you want to do?", path), i18n("File not found"), KGuiItem(i18n("Search manually")), /*KGuiItem(i18n("Remove from project")),*/ KGuiItem(i18n("Keep as placeholder"))) == KMessageBox::Yes) newpath = KFileDialog::getOpenFileName(KUrl("kfiledialog:///clipfolder"), QString(), kapp->activeWindow(), i18n("Looking for %1", path)); } if (action == KMessageBox::Yes) { diff --git a/src/projectitem.cpp b/src/projectitem.cpp index fe25876e..4427e363 100644 --- a/src/projectitem.cpp +++ b/src/projectitem.cpp @@ -44,7 +44,7 @@ ProjectItem::ProjectItem(QTreeWidget * parent, const QStringList & strings, cons setSizeHint(0, QSize(65, 45)); setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled | Qt::ItemIsEditable); setIcon(0, KIcon("folder")); - setToolTip(1, "" + i18n("Folder")); + setToolTip(1, "" + i18n("Folder")); //kDebug() << "Constructed as folder, with clipId: " << m_clipId << ", and groupname: " << m_groupname; } @@ -162,7 +162,7 @@ DocClipBase *ProjectItem::referencedClip() { } void ProjectItem::slotSetToolTip() { - QString tip = ""; + QString tip = ""; switch (m_clipType) { case AUDIO: tip.append(i18n("Audio clip") + "
" + clipUrl().path()); diff --git a/src/projectlist.cpp b/src/projectlist.cpp index a5320031..72372e4d 100644 --- a/src/projectlist.cpp +++ b/src/projectlist.cpp @@ -449,7 +449,7 @@ void ProjectList::slotRemoveInvalidClip(const QString &id) { ProjectItem *item = getItemById(id); if (item) { const QString path = item->referencedClip()->fileURL().path(); - if (!path.isEmpty()) KMessageBox::sorry(this, i18n("Clip %1
is invalid, will be removed from project.", path)); + if (!path.isEmpty()) KMessageBox::sorry(this, i18n("Clip %1
is invalid, will be removed from project.", path)); QList ids; ids << id; m_doc->deleteProjectClip(ids); diff --git a/src/wizard.cpp b/src/wizard.cpp index df77509e..a11303a6 100644 --- a/src/wizard.cpp +++ b/src/wizard.cpp @@ -224,7 +224,7 @@ void Wizard::slotCheckStandard() { for (int i = 0; i < m_standard.profiles_list->count(); i++) { QListWidgetItem *item = m_standard.profiles_list->item(i); MltVideoProfile prof = ProfilesDialog::getVideoProfile(m_profilesInfo.value(item->text())); - const QString infoString = i18n("Frame size:%1x%2
Frame rate:%3/%4
Aspect ratio:%5/%6
Display ratio:%7/%8").arg(QString::number(prof.width), QString::number(prof.height), QString::number(prof.frame_rate_num), QString::number(prof.frame_rate_den), QString::number(prof.sample_aspect_num), QString::number(prof.sample_aspect_den), QString::number(prof.display_aspect_num), QString::number(prof.display_aspect_den)); + const QString infoString = i18n("Frame size: %1x%2
Frame rate: %3/%4
Pixel aspect ratio: %5/%6
Display aspect ratio: %7/%8").arg(QString::number(prof.width), QString::number(prof.height), QString::number(prof.frame_rate_num), QString::number(prof.frame_rate_den), QString::number(prof.sample_aspect_num), QString::number(prof.sample_aspect_den), QString::number(prof.display_aspect_num), QString::number(prof.display_aspect_den)); item->setToolTip(infoString); }