X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frecmonitor.cpp;h=b0ff2eacd793e084e7c3c659ab828f57771be26a;hb=d20fa38526368d808a18d9558c25747bb731c38a;hp=b0a72c94238366cc7b7ad89cd893dd6b35bfe09b;hpb=157428a666b2a2f46481e8267a744db42924ca88;p=kdenlive diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index b0a72c94..b0ff2eac 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -234,7 +234,11 @@ void RecMonitor::slotVideoDeviceChanged(int ix) QString capturefile; QString capturename; #if KDE_IS_VERSION(4,7,0) +#if KDE_IS_VERSION(4,10,0) m_infoMessage->animatedHide(); +#else + QTimer::singleShot(0, m_infoMessage, SLOT(animatedHide())); +#endif #endif m_previewSettings->setEnabled(ix == VIDEO4LINUX || ix == BLACKMAGIC); control_frame->setVisible(ix == VIDEO4LINUX); @@ -794,7 +798,11 @@ void RecMonitor::showMessage(const QString &text, const QString &icon, bool logA connect(manualAction, SIGNAL(triggered()), this, SLOT(slotShowLog())); m_infoMessage->addAction(manualAction); } +#if KDE_IS_VERSION(4,10,0) m_infoMessage->animatedShow(); +#else + QTimer::singleShot(0, m_infoMessage, SLOT(animatedShow())); +#endif #else if (!logAction) { video_frame->setPixmap(mergeSideBySide(KIcon(icon).pixmap(QSize(50, 50)), text));