X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frecmonitor.cpp;h=299c98a788f0534c2a3e18ad449a9f14edbf95d3;hb=012c94867ad207d4b5674640c03d7dd133c1a614;hp=aec81c3995b03f5ad234ded1a2e80648f158da49;hpb=5794e725b2a54666ac019ab989a6a2bf8b23e181;p=kdenlive diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index aec81c39..299c98a7 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -233,15 +233,15 @@ void RecMonitor::slotVideoDeviceChanged(int ix) { QString capturefile; QString capturename; - if (m_infoMessage->isVisible()) { #if KDE_IS_VERSION(4,7,0) + if (m_infoMessage->isVisible()) { #if KDE_IS_VERSION(4,10,0) - m_infoMessage->animatedHide(); + m_infoMessage->animatedHide(); #else - QTimer::singleShot(0, m_infoMessage, SLOT(animatedHide())); -#endif + QTimer::singleShot(0, m_infoMessage, SLOT(animatedHide())); #endif } +#endif m_previewSettings->setEnabled(ix == VIDEO4LINUX || ix == BLACKMAGIC); control_frame->setVisible(ix == VIDEO4LINUX); m_playAction->setVisible(ix != SCREENGRAB); @@ -280,7 +280,7 @@ void RecMonitor::slotVideoDeviceChanged(int ix) if (!KdenliveSettings::ffmpegpath().isEmpty()) { if (!Render::checkX11Grab()) { // FFmpeg does not support screen grab - showWarningMessage(i18n("Your FFmpeg / Libav installation\n does not support screen grab"), "dialog-warning"); + showWarningMessage(i18n("Your FFmpeg / Libav installation\n does not support screen grab")); m_recAction->setEnabled(false); } else video_frame->setPixmap(mergeSideBySide(KIcon("video-display").pixmap(QSize(50, 50)), i18n("Press record button\nto start screen capture\nFiles will be saved in:\n%1", m_capturePath))); @@ -612,7 +612,7 @@ void RecMonitor::slotRecord() 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); @@ -810,7 +810,7 @@ void RecMonitor::showWarningMessage(const QString &text, bool logAction) } else { video_frame->setText(QString("" + text + "
" + i18n("Show log") + "")); - connect(video_frame, SIGNAL(linkActivated (const QString &)), this, SLOT(slotShowLog())); + connect(video_frame, SIGNAL(linkActivated(QString)), this, SLOT(slotShowLog())); } #endif }