Doc: Fix snippet to match actual QFileInfo behavior

The documentation was already updated in abfac029ceaf6c3199694a50,
but the snippet still incorrectly suggested QFileInfo::size would
report the actual size of an .lnk file on Windows.

Pick-to: 5.15 6.2 6.3
Change-Id: I03b96b2efcb713fbc4dd30fc526e1209806bf5cf
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Kai Köhne 2022-01-06 13:10:44 +01:00
parent 3535f66e07
commit 873a8edff8

View File

@ -77,7 +77,7 @@ info2.size(); // returns 56201
QFileInfo info1("C:\\Users\\Bob\\untabify.lnk");
info1.isSymLink(); // returns true
info1.absoluteFilePath(); // returns "C:/Users/Bob/untabify.lnk"
info1.size(); // returns 743
info1.size(); // returns 63942
info1.symLinkTarget(); // returns "C:/Pretty++/untabify"
QFileInfo info2(info1.symLinkTarget());