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>
@ -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"
|
@ -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
|
@ -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();
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |