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ø <tor.arne.vestbo@qt.io>
This commit is contained in:
Morten Johan Sørvig 2020-09-18 14:45:36 +02:00
parent 007d207a8c
commit 4fed50f4ab
12 changed files with 10 additions and 10 deletions

View File

@ -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"
"qticon16@2x.png"
"qticon16@3x.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"

View File

@ -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

View File

@ -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();

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB