debugger: remove some hard coded typenames for std container dumpers to "user land"

This commit is contained in:
hjk
2009-12-02 14:10:14 +01:00
parent f6cafeccda
commit fdbecf93c0
3 changed files with 40 additions and 20 deletions

View File

@@ -605,10 +605,10 @@ static QString niceTypeHelper(const QString typeIn)
QString WatchModel::niceType(const QString &typeIn) const
{
QString type = niceTypeHelper(typeIn);
if (theDebuggerBoolSetting(ShowStdNamespace))
if (!theDebuggerBoolSetting(ShowStdNamespace))
type = type.remove("std::");
IDebuggerEngine *engine = m_handler->m_manager->currentEngine();
if (engine && theDebuggerBoolSetting(ShowQtNamespace))
if (engine && !theDebuggerBoolSetting(ShowQtNamespace))
type = type.remove(engine->qtNamespace());
return type;
}