diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2020-09-18 14:45:36 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2020-10-23 00:58:11 +0200 |
commit | 4fed50f4ab8fa6331e2f4d1d0567dcc961e7bb01 (patch) | |
tree | 0edd7ba3cee6a4c8df3f0556e2c7f5a8eb982c29 /tests/manual/highdpi | |
parent | 007d207a8c2409f10a586c309d8498d576a69f52 (diff) | |
download | qtbase-4fed50f4ab8fa6331e2f4d1d0567dcc961e7bb01.tar.gz |
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>
Diffstat (limited to 'tests/manual/highdpi')
-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) | bin | 1884 -> 1884 bytes | |||
-rw-r--r-- | tests/manual/highdpi/kitchensink/qticon16@2x.png (renamed from tests/manual/highdpi/qticon16@2x.png) | bin | 3187 -> 3187 bytes | |||
-rw-r--r-- | tests/manual/highdpi/kitchensink/qticon16@3x.png (renamed from tests/manual/highdpi/qticon16@3x.png) | bin | 5307 -> 5307 bytes | |||
-rw-r--r-- | tests/manual/highdpi/kitchensink/qticon32.png (renamed from tests/manual/highdpi/qticon32.png) | bin | 3187 -> 3187 bytes | |||
-rw-r--r-- | tests/manual/highdpi/kitchensink/qticon32@2x.png (renamed from tests/manual/highdpi/qticon32@2x.png) | bin | 6474 -> 6474 bytes | |||
-rw-r--r-- | tests/manual/highdpi/kitchensink/qticon64.png (renamed from tests/manual/highdpi/qticon64.png) | bin | 6474 -> 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 b163599185..b8dfa9be37 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" "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" diff --git a/tests/manual/highdpi/dragwidget.cpp b/tests/manual/highdpi/kitchensink/dragwidget.cpp index bd65fcf81b..bd65fcf81b 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 06663fc74a..06663fc74a 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 2de8ed3bb5..29a40b1ffc 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 0e33ed33d7..0e33ed33d7 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 18c29bd9af..bdb4c3d571 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 Binary files differindex b6b01a4d64..b6b01a4d64 100644 --- a/tests/manual/highdpi/qticon16.png +++ b/tests/manual/highdpi/kitchensink/qticon16.png diff --git a/tests/manual/highdpi/qticon16@2x.png b/tests/manual/highdpi/kitchensink/qticon16@2x.png Binary files differindex 205461daf0..205461daf0 100644 --- a/tests/manual/highdpi/qticon16@2x.png +++ b/tests/manual/highdpi/kitchensink/qticon16@2x.png diff --git a/tests/manual/highdpi/qticon16@3x.png b/tests/manual/highdpi/kitchensink/qticon16@3x.png Binary files differindex de92658241..de92658241 100644 --- a/tests/manual/highdpi/qticon16@3x.png +++ b/tests/manual/highdpi/kitchensink/qticon16@3x.png diff --git a/tests/manual/highdpi/qticon32.png b/tests/manual/highdpi/kitchensink/qticon32.png Binary files differindex 205461daf0..205461daf0 100644 --- a/tests/manual/highdpi/qticon32.png +++ b/tests/manual/highdpi/kitchensink/qticon32.png diff --git a/tests/manual/highdpi/qticon32@2x.png b/tests/manual/highdpi/kitchensink/qticon32@2x.png Binary files differindex 76f02c6c96..76f02c6c96 100644 --- a/tests/manual/highdpi/qticon32@2x.png +++ b/tests/manual/highdpi/kitchensink/qticon32@2x.png diff --git a/tests/manual/highdpi/qticon64.png b/tests/manual/highdpi/kitchensink/qticon64.png Binary files differindex 76f02c6c96..76f02c6c96 100644 --- a/tests/manual/highdpi/qticon64.png +++ b/tests/manual/highdpi/kitchensink/qticon64.png |