Commit f2df1fe2 authored by Méven Car's avatar Méven Car
Browse files

Bump Qt min version to 5.14 and fix two warnings

parent d6b44a01
......@@ -9,7 +9,7 @@ project(kio-extras VERSION ${RELEASE_SERVICE_VERSION})
include(FeatureSummary)
set(QT_MIN_VERSION "5.11.0")
set(QT_MIN_VERSION "5.14.0")
set(KF5_MIN_VERSION "5.80.0")
set(CMAKE_CXX_STANDARD 17)
......
......@@ -143,7 +143,7 @@ ThumbnailProtocol::~ThumbnailProtocol()
void ThumbnailProtocol::get(const QUrl &url)
{
m_mimeType = metaData("mimeType");
m_enabledPlugins = metaData("enabledPlugins").split(QLatin1Char(','), QString::SkipEmptyParts);
m_enabledPlugins = metaData("enabledPlugins").split(QLatin1Char(','), Qt::SkipEmptyParts);
if (m_enabledPlugins.isEmpty()) {
const KConfigGroup globalConfig(KSharedConfig::openConfig(), "PreviewSettings");
m_enabledPlugins = globalConfig.readEntry("Plugins", KIO::PreviewJob::defaultPlugins());
......@@ -422,7 +422,8 @@ QImage ThumbnailProtocol::thumbForDirectory(const QString& directory)
if (m_propagationDirectories.isEmpty()) {
// Directories that the directory preview will be propagated into if there is no direct sub-directories
const KConfigGroup globalConfig(KSharedConfig::openConfig(), "PreviewSettings");
m_propagationDirectories = globalConfig.readEntry("PropagationDirectories", QStringList() << "VIDEO_TS").toSet();
const QStringList propagationDirectoriesList = globalConfig.readEntry("PropagationDirectories", QStringList() << "VIDEO_TS");
m_propagationDirectories = QSet<QString>(propagationDirectoriesList.begin(), propagationDirectoriesList.end());
m_maxFileSize = globalConfig.readEntry("MaximumSize", std::numeric_limits<qint64>::max());
}
......
Markdown is supported
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