diff options
author | hjk <hjk@qt.io> | 2021-09-30 18:32:52 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-10-05 08:44:50 +0000 |
commit | 2bb6bb633f2beccde7fe3726135ba5be4eadc15b (patch) | |
tree | 35c2f3d330048c44c1e3db876f520e883bda46e0 /src/plugins/valgrind | |
parent | 175acdf29c6fe937f1df3b2137435ebfc0e69069 (diff) |
Valgrind: Use FilePath in HeobDialog
Change-Id: I1efa5442791f7655c4c887ea639a7a928d769a28
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Hannes Domani <ssbssa@yahoo.de>
Diffstat (limited to 'src/plugins/valgrind')
-rw-r--r-- | src/plugins/valgrind/memchecktool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp index 95bfb7e7567..22b0bd4a762 100644 --- a/src/plugins/valgrind/memchecktool.cpp +++ b/src/plugins/valgrind/memchecktool.cpp @@ -1425,13 +1425,13 @@ void HeobDialog::updateProfile() int leakRecording = settings->value(heobLeakRecordingC, 2).toInt(); bool attach = settings->value(heobAttachC, false).toBool(); const QString extraArgs = settings->value(heobExtraArgsC).toString(); - QString path = settings->value(heobPathC).toString(); + FilePath path = FilePath::fromVariant(settings->value(heobPathC)); settings->endGroup(); if (path.isEmpty()) { const QString heobPath = QStandardPaths::findExecutable("heob32.exe"); if (!heobPath.isEmpty()) - path = QFileInfo(heobPath).path(); + path = FilePath::fromUserInput(heobPath); } m_xmlEdit->setText(xml); @@ -1444,7 +1444,7 @@ void HeobDialog::updateProfile() m_leakRecordingCombo->setCurrentIndex(leakRecording); m_attachCheck->setChecked(attach); m_extraArgsEdit->setText(extraArgs); - m_pathChooser->setPath(path); + m_pathChooser->setFilePath(path); } void HeobDialog::updateEnabled() |