diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-02 12:47:29 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-02 12:47:29 (GMT) |
commit | b78b4593410a876e0664c01ce7afade64bf37660 (patch) | |
tree | 89670f900f2ee3f3e3878d3d4c438a482916cd6b /src/declarative/debugger | |
parent | 6d28410756ab29277807d2026b4cbd8e1c707714 (diff) | |
download | Qt-b78b4593410a876e0664c01ce7afade64bf37660.zip Qt-b78b4593410a876e0664c01ce7afade64bf37660.tar.gz Qt-b78b4593410a876e0664c01ce7afade64bf37660.tar.bz2 |
fix MSVC warnings
Diffstat (limited to 'src/declarative/debugger')
-rw-r--r-- | src/declarative/debugger/qmldebugger.cpp | 3 | ||||
-rw-r--r-- | src/declarative/debugger/qmlpropertyview.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/debugger/qmldebugger.cpp b/src/declarative/debugger/qmldebugger.cpp index c925148..9ab3247 100644 --- a/src/declarative/debugger/qmldebugger.cpp +++ b/src/declarative/debugger/qmldebugger.cpp @@ -282,7 +282,7 @@ bool QmlDebugger::makeItem(QObject *obj, QmlDebuggerItem *item) if(!toolTipString.isEmpty()) toolTipString.prepend(QLatin1Char('\n')); toolTipString.prepend(tr("Root type: ") + text); - text = p->typeName; + text = QString::fromAscii(p->typeName); } if(!toolTipString.isEmpty()) @@ -333,6 +333,7 @@ bool operator<(const QPair<quint32, QPair<int, QString> > &lhs, void QmlDebugger::setCanvas(QSimpleCanvas *c) { + Q_UNUSED(c); } void QmlDebugger::setDebugObject(QObject *obj) diff --git a/src/declarative/debugger/qmlpropertyview.cpp b/src/declarative/debugger/qmlpropertyview.cpp index 0d34fd9..abe1902 100644 --- a/src/declarative/debugger/qmlpropertyview.cpp +++ b/src/declarative/debugger/qmlpropertyview.cpp @@ -210,7 +210,7 @@ void QmlPropertyView::setObject(QObject *object) ++iter) { QTreeWidgetItem *item = new QTreeWidgetItem(m_tree); - item->setText(0, iter.key()); + item->setText(0, QString::fromAscii(iter.key())); item->setForeground(0, Qt::blue); item->setText(1, iter.value()); } |