mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6e654af2b3
commit
4df06d8f7a
5 changed files with 7 additions and 7 deletions
|
@ -48,8 +48,8 @@ static void printResult(const QString &s)
|
|||
if (s.isEmpty()) {
|
||||
printf("\n");
|
||||
} else {
|
||||
QString path = QDir::toNativeSeparators( s );
|
||||
printf("%s\n", path.toLocal8Bit().constData());
|
||||
QByteArray path = QFile::encodeName(s);
|
||||
printf("%s\n", path.constData());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1509,7 +1509,7 @@ KUrl KCmdLineArgs::makeURL(const QByteArray &_urlArg)
|
|||
QFileInfo fileInfo(urlArg);
|
||||
if (!fileInfo.isRelative()) { // i.e. starts with '/', on unix
|
||||
KUrl result;
|
||||
result.setPath(QDir::fromNativeSeparators(urlArg));
|
||||
result.setPath(urlArg);
|
||||
return result; // Absolute path.
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ static QString readEnvPath(const char *env)
|
|||
const QByteArray c_path = qgetenv(env);
|
||||
if (c_path.isEmpty())
|
||||
return QString();
|
||||
return QDir::fromNativeSeparators(QFile::decodeName(c_path));
|
||||
return QFile::decodeName(c_path);
|
||||
}
|
||||
|
||||
// split path using : as delimiters
|
||||
|
|
|
@ -2662,7 +2662,7 @@ void KFileWidget::readConfig( KConfigGroup& group )
|
|||
|
||||
QString KFileWidgetPrivate::locationEditCurrentText() const
|
||||
{
|
||||
return QDir::fromNativeSeparators(locationEdit->currentText());
|
||||
return locationEdit->currentText();
|
||||
}
|
||||
|
||||
KUrl KFileWidgetPrivate::mostLocalUrl(const KUrl &url)
|
||||
|
|
|
@ -249,13 +249,13 @@ KRunMX2::subst(int option, const KUrl &url, QStringList &ret)
|
|||
switch (option) {
|
||||
case 'u':
|
||||
ret << ((url.isLocalFile() && !url.hasFragment() && !url.hasQuery()) ?
|
||||
QDir::toNativeSeparators(url.toLocalFile()) : url.url());
|
||||
url.toLocalFile() : url.url());
|
||||
break;
|
||||
case 'd':
|
||||
ret << url.directory();
|
||||
break;
|
||||
case 'f':
|
||||
ret << QDir::toNativeSeparators(url.toLocalFile());
|
||||
ret << url.toLocalFile();
|
||||
break;
|
||||
case 'n':
|
||||
ret << url.fileName();
|
||||
|
|
Loading…
Add table
Reference in a new issue