diff options
author | Christian Stenger <[email protected]> | 2025-06-27 12:49:15 +0200 |
---|---|---|
committer | Christian Stenger <[email protected]> | 2025-09-12 04:15:11 +0000 |
commit | 468fb0f8f769918b7e783afcaf918e5c16ab7f58 (patch) | |
tree | d5732787a2021f3f0a5dc39cfa234e983498684c | |
parent | e609cdef10d2403d21a6bb0abc83d072c7759325 (diff) |
Axivion: Make path mapping expectations clearer
Set tool tips for the expected values displayed on input fields.
Additionally show them on the respective label as the input
fields may display an error message on validating the input.
Change-Id: Ia99de41b1fc4cbf0c32d07c4e91ea02f1149e4c9
Reviewed-by: Leena Miettinen <[email protected]>
-rw-r--r-- | src/plugins/axivion/axivionsettings.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/axivion/axivionsettings.cpp b/src/plugins/axivion/axivionsettings.cpp index 2a33eb7d4ea..b15fb1568a9 100644 --- a/src/plugins/axivion/axivionsettings.cpp +++ b/src/plugins/axivion/axivionsettings.cpp @@ -571,6 +571,9 @@ public: return ResultError(Tr::tr("Project name must be non-empty.")); return ResultOk; }); + m_projectName.setToolTip(Tr::tr("Project name as it appears in the global dashboard.")); + m_projectName.setShowToolTipOnLabel(true); + m_analysisPath.setLabelText(Tr::tr("Analysis path:")); m_analysisPath.setDisplayStyle(StringAspect::LineEditDisplay); m_analysisPath.setValidationFunction([](const QString &text) -> Result<> { @@ -579,9 +582,17 @@ public: const FilePath fp = FilePath::fromString(input.replace('\\', '/')); return analysisPathValid(fp); }); + m_analysisPath.setToolTip(Tr::tr("Root path of the analyzed project relative to the used" + "project path inside the dashboard.\nLeave empty if the " + "analyzed project refers to the basepath of the analyzed " + "project.")); + m_analysisPath.setShowToolTipOnLabel(true); + m_localPath.setLabelText(Tr::tr("Local path:")); m_localPath.setExpectedKind(PathChooser::ExistingDirectory); m_localPath.setAllowPathFromDevice(false); + m_localPath.setToolTip(Tr::tr("Local directory path corresponding to the analyis path.")); + m_localPath.setShowToolTipOnLabel(true); using namespace Layouting; setLayouter([this] { |