aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-09-06 10:52:07 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-10 08:44:27 +0200
commit5f4df5a39be121ca60cac2b06cf94bead76d74d9 (patch)
tree4c179b708902bce3aa6a7d0074524c0435a41f8d /tests
parenta3e3da4356f30c333a74bf152429195b3ee8f030 (diff)
Rename namespace QtWinExtras to QtWin.
As discussed on mailing list. Change-Id: I7ef41d758730998e365d9e616118c4a7c811eebf Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qpixmap/tst_qpixmap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/qpixmap/tst_qpixmap.cpp b/tests/auto/qpixmap/tst_qpixmap.cpp
index 72c129f..62de7bf 100644
--- a/tests/auto/qpixmap/tst_qpixmap.cpp
+++ b/tests/auto/qpixmap/tst_qpixmap.cpp
@@ -95,7 +95,7 @@ void tst_QPixmap::toHBITMAP()
QPixmap pm(100, 100);
pm.fill(QColor(red, green, blue));
- const HBITMAP bitmap = QtWinExtras::toHBITMAP(pm);
+ const HBITMAP bitmap = QtWin::toHBITMAP(pm);
QVERIFY(bitmap != 0);
@@ -145,7 +145,7 @@ void tst_QPixmap::fromHBITMAP()
const HGDIOBJ oldBrush = SelectObject(bitmapDc, CreateSolidBrush(RGB(red, green, blue)));
Rectangle(bitmapDc, 0, 0, 100, 100);
- const QPixmap pixmap = QtWinExtras::fromHBITMAP(bitmap);
+ const QPixmap pixmap = QtWin::fromHBITMAP(bitmap);
QCOMPARE(pixmap.width(), 100);
QCOMPARE(pixmap.height(), 100);
@@ -233,7 +233,7 @@ void tst_QPixmap::toHICON()
const HDC displayDc = GetDC(0);
const HDC bitmapDc = CreateCompatibleDC(displayDc);
- const HBITMAP bitmap = QtWinExtras::toHBITMAP(empty, QtWinExtras::HBitmapAlpha);
+ const HBITMAP bitmap = QtWin::toHBITMAP(empty, QtWin::HBitmapAlpha);
SelectObject(bitmapDc, bitmap);
const QString imageFileName = pngFileName(image, width, height);
@@ -242,14 +242,14 @@ void tst_QPixmap::toHICON()
const QImage imageFromFile = QImage(imageFileName).convertToFormat(QImage::Format_ARGB32_Premultiplied);
QVERIFY(!imageFromFile.isNull());
- const HICON icon = QtWinExtras::toHICON(QPixmap::fromImage(imageFromFile));
+ const HICON icon = QtWin::toHICON(QPixmap::fromImage(imageFromFile));
DrawIconEx(bitmapDc, 0, 0, icon, width, height, 0, 0, DI_NORMAL);
DestroyIcon(icon);
DeleteDC(bitmapDc);
- const QImage imageFromHICON = QtWinExtras::fromHBITMAP(bitmap, QtWinExtras::HBitmapAlpha).toImage();
+ const QImage imageFromHICON = QtWin::fromHBITMAP(bitmap, QtWin::HBitmapAlpha).toImage();
QVERIFY(!imageFromHICON.isNull());
ReleaseDC(0, displayDc);
@@ -275,7 +275,7 @@ void tst_QPixmap::fromHICON()
QVERIFY2(QFileInfo(iconFileName).exists(), qPrintable(iconFileName));
const HICON icon = (HICON)LoadImage(0, (wchar_t*)(iconFileName).utf16(), IMAGE_ICON, width, height, LR_LOADFROMFILE);
- const QImage imageFromHICON = QtWinExtras::fromHICON(icon).toImage();
+ const QImage imageFromHICON = QtWin::fromHICON(icon).toImage();
DestroyIcon(icon);
const QString imageFileName = pngFileName(image, width, height);