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.

Change-Id: I03b96b2efcb713fbc4dd30fc526e1209806bf5cf
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
(cherry picked from commit 873a8edff8921636bef6112d545d91e1b04fe6ce)
This commit is contained in:
Kai Köhne 2022-01-18 08:40:57 +01:00
parent 9ef5cc08f7
commit 52a2ddc87a

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());