#include "qitemdelegate.h"
#include <qabstractitemmodel.h>
#include <qapplication.h>
#include <qbrush.h>
#include <qlineedit.h>
#include <qpainter.h>
#include <qpalette.h>
#include <qpoint.h>
#include <qrect.h>
#include <qsize.h>
#include <qstyle.h>
#include <qstyleoption.h>
#include <qevent.h>
#include <qpixmap.h>
#include <qbitmap.h>
#include <qpixmapcache.h>
#include <qitemeditorfactory.h>
#include <qmetaobject.h>
#include <qtextlayout.h>
#include <private/qobject_p.h>
#include <private/qdnd_p.h>
#include <qdebug.h>
#include <qlocale.h>
#include <limits.h>
#include "moc_qitemdelegate.cpp"
Include dependency graph for qitemdelegate.cpp:

Go to the source code of this file.
Classes | |
| class | QItemDelegatePrivate |
Functions | |
| static QString | qPixmapSerial (quint64 i, bool enabled) |
Definition at line 864 of file qitemdelegate.cpp.
References QString::fromUtf16(), and ptr.
Referenced by QItemDelegate::selected().
00865 { 00866 ushort arr[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '-', '0' + enabled }; 00867 ushort *ptr = &arr[16]; 00868 00869 while (i > 0) { 00870 // hey - it's our internal representation, so use the ascii character after '9' 00871 // instead of 'a' for hex 00872 *(--ptr) = '0' + i % 16; 00873 i >>= 4; 00874 } 00875 00876 return QString::fromUtf16(ptr, int(&arr[sizeof(arr) / sizeof(ushort)] - ptr)); 00877 }
Here is the call graph for this function:

1.5.1