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