summaryrefslogtreecommitdiff
path: root/tools/designer/src/components/propertyeditor
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-04-15 15:34:59 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-04-15 15:34:59 +0200
commit1eaa669a6e94124a2644d10acdf890a3c21d1ad4 (patch)
tree7e0498aa821289e2a8c3b784343c87f1bc3ffe88 /tools/designer/src/components/propertyeditor
parentf9cd98337bdf4add768b27540cc28e6508a6c0ad (diff)
downloadqt4-tools-1eaa669a6e94124a2644d10acdf890a3c21d1ad4.tar.gz
Make choosing a file path for a QUrl-type property work on Windows.
Use QUrl::fromLocalFile to construct the url string. Reviewed-by: Jarek Kobus <jkobus@trolltech.com>
Diffstat (limited to 'tools/designer/src/components/propertyeditor')
-rw-r--r--tools/designer/src/components/propertyeditor/designerpropertymanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp b/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp
index 1b267aa7ae..346da182c9 100644
--- a/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp
+++ b/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp
@@ -271,7 +271,7 @@ void TextEditor::fileActionActivated()
const QString newPath = m_core->dialogGui()->getOpenFileName(this, tr("Choose a File"), oldPath);
if (newPath.isEmpty() || newPath == oldPath)
return;
- const QString newText = QLatin1String("file:") + newPath;
+ const QString newText = QUrl::fromLocalFile(newPath).toString();
m_editor->setText(newText);
emit textChanged(newText);
}