summaryrefslogtreecommitdiffstats
path: root/tests/manual/highdpi
Commit message (Collapse)AuthorAgeFilesLines
* Use proper line spacing for font testPaul Olav Tvete2015-06-301-3/+3
| | | | | | | Since we're making things look pretty :) Change-Id: Ibc2e5f7315b9ecf789b8c7cdbf100632b9a2b4c0 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Fixup screens display.Morten Johan Sørvig2015-06-291-3/+5
| | | | | | | | | | | Support cases where one or more screens have negative positions. Make the text size a (constant) fraction of the painted screen rectangle height. Change-Id: Iea39aa49281cfe2b97c3e9b2414ee5db6dfe1fbb Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* Fonts manual test: print useful text.Morten Johan Sørvig2015-06-291-2/+2
| | | | | | | Mention if this is point or pixel sized text. Change-Id: I9996bca8370e2822a14e8090b64da2d21b40e98e Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* Handle closeEvent() properlyPaul Olav Tvete2015-06-291-7/+29
| | | | | | | ...just because we can. Change-Id: I72fcb05711c3b5ecee250fdf0adfc0b8304590cb Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Show initial scale factorsPaul Olav Tvete2015-06-291-28/+52
| | | | | | | | | | Initialize the sliders to the currently active factors. ...and fix up the layout so the sliders align properly, and aren't squashed when resizing. Change-Id: I37ef853b0fd5a26939134da7116778f898f52a88 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Manual test for physical sizesPaul Olav Tvete2015-06-291-0/+131
| | | | | Change-Id: Ic312bff631380fa5b40b927b092eb17940026b94 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Add global scale option to manual testPaul Olav Tvete2015-06-171-29/+51
| | | | | | Change-Id: I24e019a4a960425028c982dcc94d82643c836003 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Screen geometry and window position testPaul Olav Tvete2015-06-041-4/+121
| | | | | | | ... also add cursor position visualization to the cursor position widget. Change-Id: Ied0f2d46695cd15d5fc0512c9f0094ecff707388 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Test QCursor::pos and QWidget::movePaul Olav Tvete2015-06-021-0/+65
| | | | | Change-Id: I0193c76415e41a18087e4c4407b4e441c1472e2e Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Test menu bar menus and submenusPaul Olav Tvete2015-06-021-0/+29
| | | | | Change-Id: I266cb0ed1ec81c5d4aca7feb06dff7136024543d Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Test drag and dropPaul Olav Tvete2015-06-024-1/+300
| | | | | | | | | The dragwidget shows position of drag move events and drop events, to help debugging. Change-Id: Ie7313b74c6c11f527328cab9b851a868c31c4463 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
* Add interactive mode, and make it the defaultPaul Olav Tvete2015-06-011-93/+98
| | | | | Change-Id: I8d4ce7f07054616b1e668885a55803d6b8089195 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Turn off slider trackingPaul Olav Tvete2015-06-011-3/+8
| | | | | | | | It's not possible to use a slider if we scale the UI containing the slider while you slide it. Change-Id: Ie637ef88ef6cc88f46a692e27050c6ff19874fcb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Refactor QHighDpiScaling internals and usageMorten Johan Sørvig2015-05-292-65/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Overall goal is to simplify, separate concerns, and improve cross-platform-ness and testability. QT_SCALE_FACTOR is now a pure cross-platform global scale factor setter has no "auto". "auto" requires input from the platform plugin via QPlatformScreen:: pixelDensity() and gets a separate environment variable: QT_AUTO_SCREEN_SCALE_FACTOR The effective scale factor (aka devicePixelRatio) is now computed as the product of the global, screen, and window scale factors. This matches how devicePixelRatio is computed in general (the window system devicePixelRatio is also a factor), and makes QT_SCALE_FACTOR work consistently regardless if there is a window scale factor set or not. This also means we can remove the if/else casing from the nativePixels conversion functions. Add QHighDpiScaling initializer which reads the environment variables and sets the "active" variables. Call it during QGuiApplication construction, before the platform plugin is created Add per-screen scale factor setting capability to the manual test. This makes it possible to test this logic on all platforms. The command line argument is --screen-scale-factor. Change-Id: I054337cbae37a01cdd731d26d9cb628fcecdb652 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* Per window scale factor settingMorten Johan Sørvig2015-04-142-2/+78
| | | | | ./highdpi --window-scale-factor --mainwindow Also fix a couple of scaling logic bugs.
* WIP: highdpi test: Don't build an app bundleMorten Johan Sørvig2015-03-261-0/+1
| | | | Change-Id: I641e3837184ce1b542b5773c976c800cd8dc863c
* WIP: highdpi test: Test font pixel sizes as well.Morten Johan Sørvig2015-03-261-2/+15
| | | | Change-Id: Id453445739b1e219b7199139397f1a6faffcc1fc
* WIP: tests/manual/highdpi: Add line drawing testMorten Johan Sørvig2015-03-261-0/+68
| | | | Change-Id: I5b8c84ec496f584d489d5fea580e3ac76aa7a83f
* Update copyright headersJani Heikkinen2015-02-111-7/+7
| | | | | | | | | | | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Outdated header.LGPL removed (use header.LGPL21 instead) Old header.LGPL3 renamed to header.LGPL3-COMM to match actual licensing combination. New header.LGPL-COMM taken in the use file which were using old header.LGPL3 (src/plugins/platforms/android/extract.cpp) Added new header.LGPL3 containing Commercial + LGPLv3 + GPLv2 license combination Change-Id: I6f49b819a8a20cc4f88b794a8f6726d975e8ffbe Reviewed-by: Matti Paaso <matti.paaso@theqtcompany.com>
* Update license headers and add new license filesMatti Paaso2014-09-241-18/+10
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 - Removed LICENSE.GPL Change-Id: Iec3406e3eb3f133be549092015cefe33d259a3f2 Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
* Fix up existing high DPI manual test.Friedemann Kleint2014-07-182-53/+125
| | | | | | | | | Compile on Windows, add command line options to activate the various tests. Task-number: QTBUG-38858 Change-Id: I38c6a9a6711831b2bd8b6ea051dd19615cc911a1 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Update manualtests license to say "part of test suite".Gunnar Sletta2013-05-261-1/+1
| | | | | Change-Id: Ice9498c65a20ff17e68303578f8a1d9d6877f501 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Update the high-dpi manual test.Morten Johan Sørvig2013-03-299-40/+169
| | | | | | | | | - Organize the test images into different sizes. - Add a button and icon drawing test. - Don't show all tests by default. Change-Id: I95eff846b8c5159085f53b413dea7212c1ea5071 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-181-1/+1
| | | | | Change-Id: Ic804938fc352291d011800d21e549c10acac66fb Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* remove obsolete DEPENDPATH assignmentsOswald Buddenhagen2012-12-171-1/+0
| | | | | | | | qmake now add CONFIG+=depend_includepath by default, making manual DEPENDPATH setup unnecessary. Change-Id: Ie57cf05c369e21b5b9e099b6ce9be4f75da1508f Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Basic high-dpi "retina" support for Qt 5.Morten Johan Sørvig2012-12-016-0/+385
Bring Qt 5 on par with Qt 4, prepare for more comprehensive support later on. Introduce device independent pixels (dips), device pixels, and devicePixelRatio. Add high-dpi support to QPainter, QGLWidget, the cocoa platform plugin, mac and fusion styles. Dips are similar to CSS pixels, Apple points and Android density-independent pixels. Device pixels are pixels in the backing store/physical pixels on screen. devicePixelRatio is the ratio between them, which is 1.0 on standard displays and 2.0 on "retina" displays. New API: QImage::devicePixelRatio() and setDevicePixelRatio() QPixmap::devicePixelRatio() and setDevicePixelRatio() QWindow::devicePixelRatio() QScreen::devicePixelRatio() QGuiApplicaiton::devicePixelRatio() Change-Id: If98c3ca9bfdf0e1bdbcf7574cd5b912c9ff63856 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>