diff options
Diffstat (limited to 'tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp')
-rw-r--r-- | tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp b/tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp index 2ded426cdd..b1f1a4c083 100644 --- a/tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp +++ b/tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp @@ -164,12 +164,12 @@ void tst_QPixmapCache::styleUseCaseComplexKey() { styleStruct myStruct; myStruct.key = QString("my-progressbar-%1").arg(i); - myStruct.key = 5; - myStruct.key = 4; - myStruct.key = 3; + myStruct.key = QChar(5); + myStruct.key = QChar(4); + myStruct.key = QChar(3); myStruct.palette = 358; myStruct.width = 100; - myStruct.key = 200; + myStruct.key = QChar(200); QPixmapCache::Key key = QPixmapCache::insert(p); hash.insert(myStruct, key); } @@ -177,12 +177,12 @@ void tst_QPixmapCache::styleUseCaseComplexKey() { styleStruct myStruct; myStruct.key = QString("my-progressbar-%1").arg(i); - myStruct.key = 5; - myStruct.key = 4; - myStruct.key = 3; + myStruct.key = QChar(5); + myStruct.key = QChar(4); + myStruct.key = QChar(3); myStruct.palette = 358; myStruct.width = 100; - myStruct.key = 200; + myStruct.key = QChar(200); QPixmapCache::Key key = hash.value(myStruct); QPixmapCache::find(key, &p); } |