On 22/11/13 11:05, Alex Merry wrote: > On 22/11/13 10:32, David Faure wrote: >> Which reminds me that we don't have a replacement for KCmdLineArgs::url(i) >> instead, i.e. a method that resolves "an absolute filename, a relative >> filename (given a CWD), or a URL" into a QUrl, for convenience. Many (kio- >> based) apps need that. It doesn't have to be part of QCommandLineParser >> though... maybe a QUrl::fromUserInput(string, cwd), but the need to call >> QFile::exists() in there sounds like a bad location for it... I'm open to >> suggestions :) >> >> For apps that don't support URLs, something like QDir(cwd).filePath(str) is >> enough. > > If it's going to go in Qt, a static method on QProcess or > QProcessEnvironment might be logical? Since it's dealing with relative > paths.
Actually, QFile seems like the most obvious location. Alex _______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel