summaryrefslogtreecommitdiffstats
path: root/tools/designer/src/components/propertyeditor
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-04-15 13:34:59 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-04-15 16:14:20 (GMT)
commitcec175cea389ef2d680b2c4fcc0db1d9a4ba9cfb (patch)
tree069b09df4481435c7d56c7424e9a29e4d0b29545 /tools/designer/src/components/propertyeditor
parent94676b7950074d5233e47b43bf6c924762f43b7c (diff)
downloadQt-cec175cea389ef2d680b2c4fcc0db1d9a4ba9cfb.zip
Qt-cec175cea389ef2d680b2c4fcc0db1d9a4ba9cfb.tar.gz
Qt-cec175cea389ef2d680b2c4fcc0db1d9a4ba9cfb.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/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 2460ee8..1dd5bd6 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);
}