diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-04-15 13:34:59 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-04-15 13:34:59 (GMT) |
commit | 1eaa669a6e94124a2644d10acdf890a3c21d1ad4 (patch) | |
tree | 7e0498aa821289e2a8c3b784343c87f1bc3ffe88 /tools/designer/src | |
parent | f9cd98337bdf4add768b27540cc28e6508a6c0ad (diff) | |
download | Qt-1eaa669a6e94124a2644d10acdf890a3c21d1ad4.zip Qt-1eaa669a6e94124a2644d10acdf890a3c21d1ad4.tar.gz Qt-1eaa669a6e94124a2644d10acdf890a3c21d1ad4.tar.bz2 |
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')
-rw-r--r-- | tools/designer/src/components/propertyeditor/designerpropertymanager.cpp | 2 |
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 1b267aa..346da18 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); } |