summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-05-25 12:09:53 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2019-06-20 20:29:15 +0200
commitb149f5d77a3c362af1e82e95ddf0ae13954d2538 (patch)
tree8a668cffd0844dc91de222047135066f82e6ace0 /src/corelib/global/qglobal.cpp
parent84536ae61ed887f179deafb75fd28757f1cf9aba (diff)
Overload QTextBrowser::setSource() to add optional type argument
Now that it's trying to guess whether the type is markdown based on the file extension, there needs to be a way to override it. For example it might be arranged that directory listings will be generated in markdown format instead of HTML; then when loading a source URL that is a directory, the application may override the type. The type for the single-argument setSource(url) is UnknownResource to preserve the existing behavior, but the user can override the guessing by setting a specific type. Change-Id: Id111efd24de7d8fd18c47b16a2d58f5b09d77891 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
0 files changed, 0 insertions, 0 deletions