diff options
author | hjk <hjk@qt.io> | 2020-04-09 11:35:12 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-04-09 17:45:06 +0000 |
commit | 68c539bb9d697a1496b41af8efa939e1fe1f9715 (patch) | |
tree | 03056243a1c63924592e7042d07ed414ef2c6195 /src/libs/utils/pathchooser.h | |
parent | 79b680e7f0b0ff5ecca9b17fabb11fd03947ec8f (diff) |
Utils: Replace FileChooser::path() by filePath().toString()
Keep the old method for now to ease downstream porting.
The change is kept mechanical, there's a lot of cleanup possible now
on the user code side.
Change-Id: I936baedd45b7ba057f1c789a1bec896886f48eff
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs/utils/pathchooser.h')
-rw-r--r-- | src/libs/utils/pathchooser.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/utils/pathchooser.h b/src/libs/utils/pathchooser.h index e60f82ec2af..9fa371fa0e2 100644 --- a/src/libs/utils/pathchooser.h +++ b/src/libs/utils/pathchooser.h @@ -90,11 +90,6 @@ public: FilePath filePath() const; - // Deprecated. Use filePath().toString() - QString path() const; - // Deprecated. Use filePath() - FilePath fileName() const { return filePath(); } - QString rawPath() const; // The raw unexpanded input. FilePath rawFileName() const; // The raw unexpanded input. @@ -150,6 +145,11 @@ public: using AboutToShowContextMenuHandler = std::function<void (PathChooser *, QMenu *)>; static void setAboutToShowContextMenuHandler(AboutToShowContextMenuHandler handler); + // Deprecated. Use filePath().toString() or better suitable conversions. + QString path() const { return filePath().toString(); } + // Deprecated. Use filePath() + FilePath fileName() const { return filePath(); } + private: bool validatePath(FancyLineEdit *edit, QString *errorMessage) const; // Returns overridden title or the one from <title> |