[Qt-creator] #ifdef areas always grey

James agnosticpope at gmail.com
Wed Jul 22 22:52:51 CEST 2009


Even worse, if you ifdef out some portion of the code that contains a
function or function definition, you lose the ability to jump to that
function or search for that function.

--James

On Wed, Jul 22, 2009 at 3:22 PM, Lucian Smith <lpsmith at spod-central.org>wrote:

> (I'm using the provided 1.2.1 binaries for linux)
>
> I have a user-defined flag that I'm currently setting in the myproject.pro
> file, with a line like:
>
> DEFINES += MYFLAG
>
> The problem is that in the code, wherever I have:
>
> #ifdef MYFLAG
>  [code]
> #endif
>
> All the '[code]' section is grey-on-white.  This is less than ideal for
> editing, and I've taken to commenting out the first #ifdef while editing,
> then trying to remember to uncomment it again before checking in the code.
> Is there a recommended solution for this for now, and can the general
> situation be fixed for the future?  Thanks!
>
> -Lucian Smith
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090722/a26f90fb/attachment.html 


More information about the Qt-creator-old mailing list