src/gui/itemviews/qitemdelegate.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
child 8 3f74d0d4af4c
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
  1031         // instead of 'a' for hex
  1031         // instead of 'a' for hex
  1032         *(--ptr) = '0' + i % 16;
  1032         *(--ptr) = '0' + i % 16;
  1033         i >>= 4;
  1033         i >>= 4;
  1034     }
  1034     }
  1035 
  1035 
  1036     return QString::fromUtf16(ptr, int(&arr[sizeof(arr) / sizeof(ushort)] - ptr));
  1036     return QString((const QChar *)ptr, int(&arr[sizeof(arr) / sizeof(ushort)] - ptr));
  1037 }
  1037 }
  1038 
  1038 
  1039 /*!
  1039 /*!
  1040   \internal
  1040   \internal
  1041   Returns the selected version of the given \a pixmap using the given \a palette.
  1041   Returns the selected version of the given \a pixmap using the given \a palette.