#include "profilesdialog.h"
#include <KDebug>
-#include <KLocale>
+#include <KLocalizedString>
#include <KStandardDirs>
#include <KComboBox>
#include <KIO/NetAccess>
m_spaceTimer.stop();
delete m_captureProcess;
delete m_displayProcess;
- if (m_captureDevice) delete m_captureDevice;
+ delete m_captureDevice;
}
void RecMonitor::mouseDoubleClickEvent(QMouseEvent * event)
while (QFile::exists(path)) {
QString num = QString::number(i).rightJustified(4, '0', false);
path = KUrl(m_capturePath).path(KUrl::AddTrailingSlash) + "capture" + num + '.' + extension;
- i++;
+ ++i;
}
m_captureFile = KUrl(path);
m_infoMessage->addAction(manualAction);
}
#if KDE_IS_VERSION(4,10,0)
- m_infoMessage->animatedShow();
+ if (isVisible())
+ m_infoMessage->animatedShow();
#else
QTimer::singleShot(0, m_infoMessage, SLOT(animatedShow()));
#endif
}
else {
video_frame->setText(QString("<qt>" + text + "<br><a href=\"http://kde.org\">" + i18n("Show log") + "</a>"));
- connect(video_frame, SIGNAL(linkActivated (const QString &)), this, SLOT(slotShowLog()));
+ connect(video_frame, SIGNAL(linkActivated(QString)), this, SLOT(slotShowLog()));
}
#endif
}
-const QString RecMonitor::getV4lXmlPlaylist(MltVideoProfile profile, bool *isXml)
+const QString RecMonitor::getV4lXmlPlaylist(const MltVideoProfile &profile, bool *isXml)
{
QString playlist;
if (rec_video->isChecked() && rec_audio->isChecked()) {
kDebug() << "Found : " << capturedFiles.count() << " new capture files";
kDebug() << capturedFiles;
- if (capturedFiles.count() > 0) {
+ if (!capturedFiles.isEmpty()) {
QPointer<ManageCapturesDialog> d = new ManageCapturesDialog(capturedFiles, this);
if (d->exec() == QDialog::Accepted) {
emit addProjectClipList(d->importFiles());