summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2010-11-05 10:40:44 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2011-02-10 12:26:25 (GMT)
commitedcaa583aa9232f48c92d7c78a7b3e6c71212bc1 (patch)
treeafa44b6ee48933242424d93a3a37cf3a6c7e3841 /src/gui
parent01f5c74b8ecddfc192895ccb85c1627467bb6ff5 (diff)
downloadQt-edcaa583aa9232f48c92d7c78a7b3e6c71212bc1.zip
Qt-edcaa583aa9232f48c92d7c78a7b3e6c71212bc1.tar.gz
Qt-edcaa583aa9232f48c92d7c78a7b3e6c71212bc1.tar.bz2
used official descriptor to QString conversion
The OpenFileL code now uses qt_TDesC2QString to convert from the TFileName to a QString. Task-number: QTBUG-15015 Reviewed-by: Shane Kearns
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/s60framework/qs60maindocument.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/s60framework/qs60maindocument.cpp b/src/gui/s60framework/qs60maindocument.cpp
index 071aa5b..95effbc 100644
--- a/src/gui/s60framework/qs60maindocument.cpp
+++ b/src/gui/s60framework/qs60maindocument.cpp
@@ -43,6 +43,7 @@
#include "qs60maindocument.h"
#include "qcoreapplication.h"
#include "qevent.h"
+#include "private/qcore_symbian_p.h"
#include <exception>
@@ -114,7 +115,7 @@ CFileStore *QS60MainDocument::OpenFileL(TBool aDoOpen, const TDesC &aFilename, R
{
if (aDoOpen) {
QCoreApplication* app = QCoreApplication::instance();
- QString qname((QChar*)aFilename.Ptr(), aFilename.Length());
+ QString qname = qt_TDesC2QString(aFilename);
QFileOpenEvent* event = new QFileOpenEvent(qname);
app->postEvent(app, event);
}
@@ -129,7 +130,7 @@ void QS60MainDocument::OpenFileL(CFileStore *&aFileStore, RFile &aFile)
QCoreApplication* app = QCoreApplication::instance();
TFileName name;
aFile.FullName(name);
- QString qname((QChar*)name.Ptr(), name.Length());
+ QString qname = qt_TDesC2QString(name);
QFileOpenEvent* event = new QFileOpenEvent(qname);
app->postEvent(app, event);
aFileStore = 0;