[my stupid phone put my reply into the the bounce queue because it doesn't 
reply from the right address... android dough!]

Yup,

From the QDir documentation:

> Qt uses "/" as a universal directory separator in the same way that "/" is 
> used as a path separator in URLs. If you always use "/" as a directory 
> separator, Qt will translate your paths to conform to the underlying 
> operating system.

So that is why we use them.

Cheers,

-G

On 2009-12-01, at 9:36 PM, Zach wrote:

> I am pretty sure that Qt allows you to use the forward slash but then 
> internally replaces it with the correct slash depending on the platform mixxx 
> gets compiled for.
> 
> On Tue, Dec 1, 2009 at 9:27 PM, Dope Ice Apollyon the Third 
> <[email protected]> wrote:
> On Tue, Dec 1, 2009 at 6:43 PM, Owen Williams <[email protected]> wrote:
> > This is a nitpicky / curiosity question, but is there no prettier way to
> > combine paths in QT than 'newpath = foo + "/" + bar;'?  I would have
> > thought there would be crossplatform issues with the forward slash,
> > though the fact that mixxx works on windows would seem to contradict
> > this assumption.
> >
> > In python, there's system.path.join for this purpose, and other
> > platforms have a similar path.combine function... Is there no such thing
> > in qt land?  It's not really a big deal, it just looks ugly to me :).
> 
> You're right. The forward slash should go--it works on Windows because
> the Windows APIs internally support using a forward slash as a
> separator. I'm not sure what the Qt equivalent to path.join is though.
> 
> -Nick (not dead! just hiding!)
> 
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
> 
> 
> 
> -- 
> Zach Shutters
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing. 
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to