summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-05-18 18:03:10 +0200
committerhjk <hjk@qt.io>2021-05-19 11:41:42 +0000
commit2db9ebc61504c5455f1fb2b4ed2a1cb6115ccbfa (patch)
treeb3fabec7fcf9d1df7f31ef71468dd120da9dffdc /src/plugins/python/pythonutils.cpp
parentb3ee704f175e853637c2784134693aadc9b31314 (diff)
downloadqt-creator-2db9ebc61504c5455f1fb2b4ed2a1cb6115ccbfa.tar.gz
Utils: Rework FilePath guts
This replaces FilePath::m_url by explicit host and scheme members This removes the unclear duplication of information in m_data and m_url.path() and avoids syntactic restrictions a real url has on scheme and host and complex (and potentially lossy) url parsing: QUrl url; url.setHost("1234"); assert(url.host() == "0.0.4.210") The toString/fromString methods now accept strings of the form scheme://host/path, mimicing the use of urls so far. Relative remote paths are representable, their toString() output looks like scheme://./host/path and can be parsed back by fromString(). Change-Id: Id3b52c270b228e23834faa3f44daad8b1718b654 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
0 files changed, 0 insertions, 0 deletions