[kdelibs/frameworks] /: Deprecate KTempDir, with full porting instructions.

David Faure faure at kde.org
Mon Dec 5 09:53:57 UTC 2011


On Monday 05 December 2011 00:34:54 Pau Garcia i Quiles wrote:
> On Sun, Dec 4, 2011 at 11:41 PM, David Faure <faure at kde.org> wrote:
> > + * This should be ported to
> > + *    QTemporaryDir(QDir::tempPath() + QLatin1Char('/') + prefix);
> 
> Shouldn't that be QDir::separator() ?
> 
> (yes, I know '/' works on Windows, it QDir::separator() guarantees
> full present and future cross-platform portability)

No, QDir::separator is when showing paths to the user.
Qt code can and should use '/' everywhere, it's much easier.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list