From f736c23afc2d0280303a2d90f4f91def18bcb1c0 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 19 Sep 2022 13:41:57 +0200 Subject: [PATCH] Utils: Make PathChooser::path() private Still registered as getter for the property. Change-Id: I9a35bbe5f8bf4354670d09eba07288274eb7dd2b Reviewed-by: Eike Ziller Reviewed-by: --- src/libs/utils/pathchooser.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libs/utils/pathchooser.h b/src/libs/utils/pathchooser.h index a508e589859..ca9655fa255 100644 --- a/src/libs/utils/pathchooser.h +++ b/src/libs/utils/pathchooser.h @@ -128,9 +128,6 @@ public: void setOpenTerminalHandler(const std::function &openTerminal); std::function openTerminalHandler() const; - // Deprecated. Use filePath().toString() or better suitable conversions. - QString path() const { return filePath().toString(); } - // this sets the placeHolderText to defaultValue and enables to use this as // input value during validation if the real value is empty // setting an empty QString will disable this and clear the placeHolderText @@ -153,6 +150,10 @@ signals: void returnPressed(); private: + // Deprecated, only used in property getter. + // Use filePath().toString() or better suitable conversions. + QString path() const { return filePath().toString(); } + bool validatePath(FancyLineEdit *edit, QString *errorMessage) const; // Returns overridden title or the one from QString makeDialogTitle(const QString &title);