diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2020-09-25 16:54:50 +0200 |
---|---|---|
committer | Andreas Buhr <andreas.buhr@qt.io> | 2020-09-29 09:59:02 +0200 |
commit | f8474306e5a42ac44eeccd7e01abe44ebeef79f6 (patch) | |
tree | 58e1860d70d5262b6c9a1e03ec96a81e5bf42d26 /src/gui | |
parent | b05e444a923e8362b6912da6dcda8247f7233322 (diff) |
QPrinter: fix unit tests for special case when no printer is default
The unit tests of QPrinter assume that a printer which is default-
initialized is the same printer as the default printer. However, when
no printer is set to default, this is not the case. When no printer
is the default printer, a default-initialized QPrinter will be the
first printer found.
This patch adapts the unit tests to work also when no printer is the
default printer, even though printers are available.
Change-Id: I4967e5b1c4fb8a7c33c911184289ec5cd283fc58
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions