Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Platform specific code in QtCreator
Forum Updated to NodeBB v4.3 + New Features

Platform specific code in QtCreator

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 3 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thanatos
    wrote on last edited by
    #1

    Does anyone know if its possible to 'hide' platform specific code when viewing source code in QtCreator ? Sometimes it would be much more easy to read code if i could temporary hide all Q_OS_SYMBIAN and etc. code.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Code folding for #ifdef statements is a long standing feature request: "QTCREATORBUG-2":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2

      So far we did not get round to implement it, but we would be happy to accept patches.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        ziller
        wrote on last edited by
        #3

        Code that is wrapped in ifdefs that are validating to true for the current build configuration are grayed out at least, if that already helps a bit. (I.e. Q_OS_SYMBIAN code is grayed out if you are building for e.g. Desktop)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved