Commit 56f7f45f authored by Thomas Eschenbacher's avatar Thomas Eschenbacher
Browse files

fixed some deprecation warnings about 'QString::{Skip,Keep}EmptyParts()' ->...

fixed some deprecation warnings about 'QString::{Skip,Keep}EmptyParts()' -> 'Qt::{Skip,Keep}EmptyParts'
parent 11e84f14
......@@ -51,7 +51,7 @@ void Kwave::CodecBase::addMimeType(const char *name,
const QString type_name = _(name);
if (type_name.contains(_(","))) {
// list of mime types -> call recursively for each of them
QStringList types = type_name.split(_(","), QString::SkipEmptyParts);
QStringList types = type_name.split(_(","), Qt::SkipEmptyParts);
foreach (const QString &mt, types) {
addMimeType(mt.trimmed().toUtf8().data(), description, patterns);
}
......@@ -66,7 +66,7 @@ void Kwave::CodecBase::addMimeType(const char *name,
// qWarning("mime type '%s' not registered, using built-in!", name);
type.name = type_name;
type.description = description;
type.patterns = _(patterns).split(_("; "), QString::SkipEmptyParts);
type.patterns = _(patterns).split(_("; "), Qt::SkipEmptyParts);
} else {
type.description = t.comment();
type.patterns = t.globPatterns();
......
......@@ -720,7 +720,7 @@ QString Kwave::MP3EncoderDialog::searchPath(const QString &program)
const QLatin1Char separator = QLatin1Char(':');
#endif
QStringList path =
_(qgetenv("PATH")).split(separator, QString::SkipEmptyParts);
_(qgetenv("PATH")).split(separator, Qt::SkipEmptyParts);
QFileInfo f(program);
QString d = f.path();
......
......@@ -303,7 +303,7 @@ void Kwave::PlayBackDialog::setSupportedDevices(QStringList devices)
foreach (const QString &dev_id, devices) {
QTreeWidgetItem *parent = Q_NULLPTR;
QStringList list = dev_id.split(_("||"), QString::KeepEmptyParts);
QStringList list = dev_id.split(_("||"), Qt::KeepEmptyParts);
foreach (const QString &t, list) {
QString token(t);
QTreeWidgetItem *item = Q_NULLPTR;
......
......@@ -412,7 +412,7 @@ void Kwave::RecordDialog::setSupportedDevices(QStringList devices)
foreach (QString dev_id, devices) {
QTreeWidgetItem *parent = Q_NULLPTR;
QStringList list = dev_id.split(_("||"), QString::KeepEmptyParts);
QStringList list = dev_id.split(_("||"), Qt::KeepEmptyParts);
foreach (QString token, list) {
QTreeWidgetItem *item = Q_NULLPTR;
......
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