Commit d271ca1e authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Port deprecated QString::SplitBehavior -> Qt::SplitBehavior

parent f6abcdd6
......@@ -620,7 +620,7 @@ void K3b::ExternalBinManager::search()
#else
const QChar pathSep = QChar::fromLatin1( ':' );
#endif
const QStringList possiblePaths = QString::fromLatin1( qgetenv( "PATH" ) ).split( pathSep, QString::SkipEmptyParts )
const QStringList possiblePaths = QString::fromLatin1( qgetenv( "PATH" ) ).split( pathSep, Qt::SkipEmptyParts )
+ d->searchPath;
foreach( QString p, possiblePaths ) {
if (p.length() == 0)
......
......@@ -443,7 +443,7 @@ K3b::FileItem* K3b::MovixDocPreparer::createItem( const QString& localPath, cons
K3b::DirItem* K3b::MovixDocPreparer::createDir( const QString& docPath )
{
QStringList docPathSections = docPath.split( '/', QString::SkipEmptyParts );
QStringList docPathSections = docPath.split( '/', Qt::SkipEmptyParts );
K3b::DirItem* dir = d->doc->root();
for( QStringList::ConstIterator it = docPathSections.constBegin(); it != docPathSections.constEnd(); ++it ) {
K3b::DataItem* next = dir->find( *it );
......
......@@ -299,7 +299,7 @@ QStringList K3b::MovixBin::supported( const QString& type ) const
p.setOutputChannelMode( KProcess::MergedChannels );
p.start();
if( p.waitForFinished( -1 ) )
return QString(p.readAll()).split( '\n', QString::SkipEmptyParts );
return QString(p.readAll()).split( '\n', Qt::SkipEmptyParts );
else
return QStringList();
}
......@@ -328,7 +328,7 @@ QStringList K3b::MovixBin::files( const QString& kbd,
p.start();
if( p.waitForFinished( -1 ) )
return QString(p.readAll()).split( '\n', QString::SkipEmptyParts );
return QString(p.readAll()).split( '\n', Qt::SkipEmptyParts );
else
return QStringList();
}
......@@ -43,7 +43,7 @@ namespace {
}
}
QStringList lines = QString::fromLocal8Bit( buffer ).split( '\n', suppressEmptyLines ? QString::SkipEmptyParts : QString::KeepEmptyParts );
QStringList lines = QString::fromLocal8Bit( buffer ).split( '\n', suppressEmptyLines ? Qt::SkipEmptyParts : Qt::KeepEmptyParts );
// in case we suppress empty lines we need to handle the following separately
// to make sure we join unfinished lines correctly
......
......@@ -706,7 +706,7 @@ void K3bQProcessPrivate::startProcess()
if (!program.contains(QLatin1Char('/'))) {
const QString pathEnv = QString::fromLocal8Bit(::getenv("PATH"));
if (!pathEnv.isEmpty()) {
QStringList pathEntries = pathEnv.split(QLatin1Char(':'), QString::SkipEmptyParts);
QStringList pathEntries = pathEnv.split(QLatin1Char(':'), Qt::SkipEmptyParts);
if (!pathEntries.isEmpty()) {
pathc = pathEntries.size();
path = new char *[pathc + 1];
......
......@@ -70,7 +70,7 @@ bool K3b::LsofWrapper::checkDevice( K3b::Device::Device* dev )
//
// now process its output
const QStringList l = QString::fromLocal8Bit( p.readAllStandardOutput() ).split( '\n', QString::SkipEmptyParts );
const QStringList l = QString::fromLocal8Bit( p.readAllStandardOutput() ).split( '\n', Qt::SkipEmptyParts );
QStringList::ConstIterator it = l.constBegin();
while ( it != l.constEnd() ) {
int pid = it->mid(1).toInt();
......
......@@ -67,7 +67,7 @@ void ExternalBinParamsModel::save()
{
QRegExp reSpace( "\\s" );
Q_FOREACH( ExternalProgram* program, d->programs ) {
QStringList params = d->parameters[ program ].split( reSpace, QString::SkipEmptyParts );
QStringList params = d->parameters[ program ].split( reSpace, Qt::SkipEmptyParts );
program->setUserParameters( params );
}
}
......
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