summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Johan Sørvig <[email protected]>2020-09-18 14:45:36 +0200
committerMorten Johan Sørvig <[email protected]>2020-10-23 00:58:11 +0200
commit4fed50f4ab8fa6331e2f4d1d0567dcc961e7bb01 (patch)
tree0edd7ba3cee6a4c8df3f0556e2c7f5a8eb982c29
parent007d207a8c2409f10a586c309d8498d576a69f52 (diff)
Prepare for having multiple highdpi manual tests
Move the existing “kitchen sink” test out of the way, and rename it to “kitchensink” Change-Id: I121260e640bb2810a94f8112fcea212e97055fb3 Reviewed-by: Tor Arne Vestbø <[email protected]>
-rw-r--r--tests/manual/highdpi/kitchensink/CMakeLists.txt (renamed from tests/manual/highdpi/CMakeLists.txt)14
-rw-r--r--tests/manual/highdpi/kitchensink/dragwidget.cpp (renamed from tests/manual/highdpi/dragwidget.cpp)0
-rw-r--r--tests/manual/highdpi/kitchensink/dragwidget.h (renamed from tests/manual/highdpi/dragwidget.h)0
-rw-r--r--tests/manual/highdpi/kitchensink/kitchensink.pro (renamed from tests/manual/highdpi/highdpi.pro)4
-rw-r--r--tests/manual/highdpi/kitchensink/kitchensink.qrc (renamed from tests/manual/highdpi/highdpi.qrc)0
-rw-r--r--tests/manual/highdpi/kitchensink/main.cpp (renamed from tests/manual/highdpi/main.cpp)2
-rw-r--r--tests/manual/highdpi/kitchensink/qticon16.png (renamed from tests/manual/highdpi/qticon16.png)bin1884 -> 1884 bytes
-rw-r--r--tests/manual/highdpi/kitchensink/[email protected] (renamed from tests/manual/highdpi/[email protected])bin3187 -> 3187 bytes
-rw-r--r--tests/manual/highdpi/kitchensink/[email protected] (renamed from tests/manual/highdpi/[email protected])bin5307 -> 5307 bytes
-rw-r--r--tests/manual/highdpi/kitchensink/qticon32.png (renamed from tests/manual/highdpi/qticon32.png)bin3187 -> 3187 bytes
-rw-r--r--tests/manual/highdpi/kitchensink/[email protected] (renamed from tests/manual/highdpi/[email protected])bin6474 -> 6474 bytes
-rw-r--r--tests/manual/highdpi/kitchensink/qticon64.png (renamed from tests/manual/highdpi/qticon64.png)bin6474 -> 6474 bytes
12 files changed, 10 insertions, 10 deletions
diff --git a/tests/manual/highdpi/CMakeLists.txt b/tests/manual/highdpi/kitchensink/CMakeLists.txt
index b1635991858..b8dfa9be37a 100644
--- a/tests/manual/highdpi/CMakeLists.txt
+++ b/tests/manual/highdpi/kitchensink/CMakeLists.txt
@@ -1,10 +1,10 @@
-# Generated from highdpi.pro.
+# Generated from kitchensink.pro.
#####################################################################
-## highdpi Binary:
+## kitchensink Binary:
#####################################################################
-qt_internal_add_manual_test(highdpi
+qt_internal_add_manual_test(kitchensink
SOURCES
dragwidget.cpp dragwidget.h
main.cpp
@@ -19,7 +19,7 @@ qt_internal_add_manual_test(highdpi
)
# Resources:
-set(highdpi_resource_files
+set(kitchensink_resource_files
"qticon16.png"
@@ -28,13 +28,13 @@ set(highdpi_resource_files
"qticon64.png"
)
-qt_internal_add_resource(highdpi "highdpi"
+qt_internal_add_resource(kitchensink "kitchensink"
PREFIX
"/"
FILES
- ${highdpi_resource_files}
+ ${kitchensink_resource_files}
)
-#### Keys ignored in scope 1:.:.:highdpi.pro:<TRUE>:
+#### Keys ignored in scope 1:.:.:kitchensink.pro:<TRUE>:
# TEMPLATE = "app"
diff --git a/tests/manual/highdpi/dragwidget.cpp b/tests/manual/highdpi/kitchensink/dragwidget.cpp
index bd65fcf81b1..bd65fcf81b1 100644
--- a/tests/manual/highdpi/dragwidget.cpp
+++ b/tests/manual/highdpi/kitchensink/dragwidget.cpp
diff --git a/tests/manual/highdpi/dragwidget.h b/tests/manual/highdpi/kitchensink/dragwidget.h
index 06663fc74a4..06663fc74a4 100644
--- a/tests/manual/highdpi/dragwidget.h
+++ b/tests/manual/highdpi/kitchensink/dragwidget.h
diff --git a/tests/manual/highdpi/highdpi.pro b/tests/manual/highdpi/kitchensink/kitchensink.pro
index 2de8ed3bb57..29a40b1ffc0 100644
--- a/tests/manual/highdpi/highdpi.pro
+++ b/tests/manual/highdpi/kitchensink/kitchensink.pro
@@ -1,5 +1,5 @@
TEMPLATE = app
-TARGET = highdpi
+TARGET = kitchensink
INCLUDEPATH += .
QT += widgets gui-private
CONFIG += cmdline
@@ -13,6 +13,6 @@ HEADERS += \
dragwidget.h
RESOURCES += \
- highdpi.qrc
+ kitchensink.qrc
DEFINES += HAVE_SCREEN_BASE_DPI
diff --git a/tests/manual/highdpi/highdpi.qrc b/tests/manual/highdpi/kitchensink/kitchensink.qrc
index 0e33ed33d76..0e33ed33d76 100644
--- a/tests/manual/highdpi/highdpi.qrc
+++ b/tests/manual/highdpi/kitchensink/kitchensink.qrc
diff --git a/tests/manual/highdpi/main.cpp b/tests/manual/highdpi/kitchensink/main.cpp
index 18c29bd9afd..bdb4c3d5715 100644
--- a/tests/manual/highdpi/main.cpp
+++ b/tests/manual/highdpi/kitchensink/main.cpp
@@ -949,7 +949,7 @@ public:
{
if (!moving)
return;
- QPoint pos = useCursorPos ? QCursor::pos() : e->globalPos();
+ QPoint pos = useCursorPos ? QCursor::pos() : e->globalPosition().toPoint();
pos -= moveLabel->rect().center();
moveLabel->move(pos);
mousePos = e->pos();
diff --git a/tests/manual/highdpi/qticon16.png b/tests/manual/highdpi/kitchensink/qticon16.png
index b6b01a4d648..b6b01a4d648 100644
--- a/tests/manual/highdpi/qticon16.png
+++ b/tests/manual/highdpi/kitchensink/qticon16.png
Binary files differ
diff --git a/tests/manual/highdpi/[email protected] b/tests/manual/highdpi/kitchensink/[email protected]
index 205461daf03..205461daf03 100644
--- a/tests/manual/highdpi/[email protected]
+++ b/tests/manual/highdpi/kitchensink/[email protected]
Binary files differ
diff --git a/tests/manual/highdpi/[email protected] b/tests/manual/highdpi/kitchensink/[email protected]
index de926582413..de926582413 100644
--- a/tests/manual/highdpi/[email protected]
+++ b/tests/manual/highdpi/kitchensink/[email protected]
Binary files differ
diff --git a/tests/manual/highdpi/qticon32.png b/tests/manual/highdpi/kitchensink/qticon32.png
index 205461daf03..205461daf03 100644
--- a/tests/manual/highdpi/qticon32.png
+++ b/tests/manual/highdpi/kitchensink/qticon32.png
Binary files differ
diff --git a/tests/manual/highdpi/[email protected] b/tests/manual/highdpi/kitchensink/[email protected]
index 76f02c6c96d..76f02c6c96d 100644
--- a/tests/manual/highdpi/[email protected]
+++ b/tests/manual/highdpi/kitchensink/[email protected]
Binary files differ
diff --git a/tests/manual/highdpi/qticon64.png b/tests/manual/highdpi/kitchensink/qticon64.png
index 76f02c6c96d..76f02c6c96d 100644
--- a/tests/manual/highdpi/qticon64.png
+++ b/tests/manual/highdpi/kitchensink/qticon64.png
Binary files differ