Re: [Qt-creator] #ifdef Linux - code coloring

2009-05-18 Thread Eike Ziller
Hi, On May 18, 2009, at 8:51 AM, ext Liebe Markus (RtP2/TEF72) wrote: Hi, In a project I have several code sections that are specific for Windows or Linux. To seperate them I use: #ifdef Linux // code #endif As well as #ifdef WIN32 // code #endif In QtCreator both sections in

Re: [Qt-creator] #ifdef Linux - code coloring

2009-05-18 Thread André Pönitz
On Monday 18 May 2009 08:51:37 ext Liebe Markus (RtP2/TEF72) wrote: Hi, In a project I have several code sections that are specific for Windows or Linux. To seperate them I use: #ifdef Linux // code #endif As well as #ifdef WIN32 // code #endif Have you considered using #ifdef

Re: [Qt-creator] #ifdef Linux - code coloring

2009-05-18 Thread Liebe Markus (RtP2/TEF72)
Hi, On the screenshot this is Q_WS_WIN, not Q_OS_WIN as requested... Regards, Gilles On the screenshot I included Q_WS_WIN, Q_OS_WIN (as mentioned by André) and Q_OS_WIN32 (as mentioned by Eike). In the QtDocumentation I found Q_OS_WIN32 as well as Q_WS_WIN. But none of the defines seem to

Re: [Qt-creator] #ifdef Linux - code coloring

2009-05-18 Thread Daniel Molkentin
Hi, ext Liebe Markus (RtP2/TEF72) schrieb: On the screenshot this is Q_WS_WIN, not Q_OS_WIN as requested... Regards, Gilles On the screenshot I included Q_WS_WIN, Q_OS_WIN (as mentioned by André) and Q_OS_WIN32 (as mentioned by Eike). In the QtDocumentation I found Q_OS_WIN32 as well as

Re: [Qt-creator] #ifdef Linux - code coloring

2009-05-18 Thread Eike Ziller
On May 18, 2009, at 1:11 PM, ext Liebe Markus (RtP2/TEF72) wrote: Hi, Thanks for your answers. Have you considered using #ifdef Q_OS_LINUX // code #endif and #ifdef Q_OS_WIN // code #endif I tried this. On Linux Q_OS_LINUX works. On Windows Q_OS_WIN32 / Q_OS_WIN does not work.