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 SOURCES
dragwidget.cpp dragwidget.h dragwidget.cpp dragwidget.h
main.cpp main.cpp
@ -19,7 +19,7 @@ qt_internal_add_manual_test(highdpi
) )
# Resources: # Resources:
set(highdpi_resource_files set(kitchensink_resource_files
"qticon16.png" "qticon16.png"
"qticon16@2x.png" "qticon16@2x.png"
"qticon16@3x.png" "qticon16@3x.png"
@ -28,13 +28,13 @@ set(highdpi_resource_files
"qticon64.png" "qticon64.png"
) )
qt_internal_add_resource(highdpi "highdpi" qt_internal_add_resource(kitchensink "kitchensink"
PREFIX PREFIX
"/" "/"
FILES 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" # TEMPLATE = "app"

View File

@ -1,5 +1,5 @@
TEMPLATE = app TEMPLATE = app
TARGET = highdpi TARGET = kitchensink
INCLUDEPATH += . INCLUDEPATH += .
QT += widgets gui-private QT += widgets gui-private
CONFIG += cmdline CONFIG += cmdline
@ -13,6 +13,6 @@ HEADERS += \
dragwidget.h dragwidget.h
RESOURCES += \ RESOURCES += \
highdpi.qrc kitchensink.qrc
DEFINES += HAVE_SCREEN_BASE_DPI DEFINES += HAVE_SCREEN_BASE_DPI

View File

@ -949,7 +949,7 @@ public:
{ {
if (!moving) if (!moving)
return; return;
QPoint pos = useCursorPos ? QCursor::pos() : e->globalPos(); QPoint pos = useCursorPos ? QCursor::pos() : e->globalPosition().toPoint();
pos -= moveLabel->rect().center(); pos -= moveLabel->rect().center();
moveLabel->move(pos); moveLabel->move(pos);
mousePos = e->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