Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96

Path separator should not be hardcoded on Qtopia Core

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.6.1
    • None
    • Other
    • None

      There should be a way to modify the path separator for Qtopia Core at compile time (ie: switching between \ and /). Although this is not generally a problem because this happens in platform specific code where were generally know the separator, adding this feature would make porting Qtopia Core to new platforms easier. One solution would be to add the following to qplatfromdefs.h:

      #define QT_PATH_SEPERATOR_CHAR '/'
      #define QT_PATH_SEPERATOR_STRING "/"

      OR

      #define QT_PATH_SEPERATOR_CHAR '
      '
      #define QT_PATH_SEPERATOR_STRING "
      "

      and use this instead of hard coding the slash.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tvete Paul Olav Tvete
            jabarron Jason Barron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes