Commit 4f6b7b7d authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊
Browse files

Remove Old Qt <5.15.2 checks

Now kdenlive require min  Qt version as 5.15.2 thus keeping those part not needed.
parent b7b8511e
Pipeline #203527 passed with stage
in 11 minutes and 43 seconds
......@@ -351,11 +351,7 @@ bool MltDeviceCapture::slotStartCapture(const QString &params, const QString &pa
// without this line a call to mlt_properties_get_int(terminate on pause) for in mlt/src/modules/core/consumer_multi.c is returning 1
// and going into and endless loop.
renderProps->set("mlt_profile", m_activeProfile.toUtf8().constData());
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const QStringList paramList = params.split(' ', QString::SkipEmptyParts);
#else
const QStringList paramList = params.split(' ', Qt::SkipEmptyParts);
#endif
for (int i = 0; i < paramList.count(); ++i) {
tmp = qstrdup(paramList.at(i).section(QLatin1Char('='), 0, 0).toUtf8().constData());
QString value = paramList.at(i).section(QLatin1Char('='), 1, 1);
......
......@@ -300,12 +300,6 @@ QDebug operator<<(QDebug qd, const ItemInfo &info);
// we provide hash function for qstring and QPersistentModelIndex
namespace std {
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
template <> struct hash<QString>
{
std::size_t operator()(const QString &k) const { return qHash(k); }
};
#endif
template <> struct hash<QPersistentModelIndex>
{
std::size_t operator()(const QPersistentModelIndex &k) const { return qHash(k); }
......
......@@ -344,11 +344,7 @@ void RenderWidget::slotShareActionFinished(const QJsonObject &output, int error,
QSize RenderWidget::sizeHint() const
{
// Make sure the widget has minimum size on opening
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
return {200, 200};
#else
return {200, qMax(200, screen()->availableGeometry().height())};
#endif
}
RenderWidget::~RenderWidget()
......
Supports Markdown
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