summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestutil_macos.mm
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in docs and commentsKai Köhne2022-06-151-1/+1
| | | | | | | | | Found by codespell Pick-to: 6.4 Change-Id: Ie3e301a23830c773a2e9aff487c702a223d246eb Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-161-38/+2
| | | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Id880c92784c40f3bbde861c0d93f58151c18b9f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* testlib: Disable window restoration on macOS in a non-persistent wayTor Arne Vestbø2022-02-011-2/+5
| | | | | | | | | | | | | | | | The recommended way to register defaults on macOS is via registerDefaults: which puts the key/value into the volatile NSRegistrationDomain. This stops testlib from dumping preference files into ~/Library/Preferences: ❯ plutil -p tst_qwidget.plist { "ApplePersistenceIgnoreState" => 1 } Pick-to: 6.2 6.3 5.15 Change-Id: I4ac812014f9ff97bc446806eaf2108cd1c8b89c3 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* testlib: Be more selective in choosing to show stacktraces on macOSTor Arne Vestbø2020-02-061-0/+28
| | | | | | | | | The built in crash reporter on macOS will by default not show the dialog if the application is not one that will run in the foreground. Change-Id: I0020520ae2f14a0e2f84fdca1d80ec6fe1247ffd Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* QTestLib: Disable App Nap on macOSMorten Johan Sørvig2017-08-221-0/+27
| | | | | | | | App Nap may cause stalls or timer delays during test runs. Change-Id: I828282d12127918439a9a2a4f7d7be6cac457b42 Task-number: QTBUG-61499 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Testlib: Replace LGPL21 with LGPL license headerKai Koehne2017-03-031-14/+20
| | | | | | | Also use canonical contact url. Change-Id: I7ffe7a8afa28fe8b66e00bc5e51595edeac042a9 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* QTestLib: Disable window state restore on macOSMorten Johan Sørvig2016-08-181-0/+53
For test runs we want to start with a clean slate and ignore previously saved window state. This also prevents the “previous restore failed” dialog from from showing and blocking the test run. Change-Id: I8e5b87a903cf1d937d628c2b062f917c4c37f176 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>