Changeset View
Changeset View
Standalone View
Standalone View
addons/symbolviewer/cpp_parser.cpp
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Line(s) | 231 | if(cl.at(j)==QLatin1Char(';')) | |||
---|---|---|---|---|---|
237 | } | 237 | } | ||
238 | 238 | | |||
239 | if((cl.at(j)==QLatin1Char('{') && structure == false && cl.indexOf(QLatin1Char(';')) < 0) || | 239 | if((cl.at(j)==QLatin1Char('{') && structure == false && cl.indexOf(QLatin1Char(';')) < 0) || | ||
240 | (cl.at(j)==QLatin1Char('{') && structure == false && cl.indexOf(QLatin1Char('}')) > (int)j)) | 240 | (cl.at(j)==QLatin1Char('{') && structure == false && cl.indexOf(QLatin1Char('}')) > (int)j)) | ||
241 | { | 241 | { | ||
242 | stripped.replace(0x9, QLatin1String(" ")); | 242 | stripped.replace(0x9, QLatin1String(" ")); | ||
243 | if(func_on == true) | 243 | if(func_on == true) | ||
244 | { | 244 | { | ||
245 | QString strippedWithTypes = stripped; | ||||
245 | if (m_plugin->typesOn == false) | 246 | if (m_plugin->typesOn == false) | ||
246 | { | 247 | { | ||
247 | while (stripped.indexOf(QLatin1Char('(')) >= 0) | 248 | while (stripped.indexOf(QLatin1Char('(')) >= 0) | ||
248 | stripped = stripped.left(stripped.indexOf(QLatin1Char('('))); | 249 | stripped = stripped.left(stripped.indexOf(QLatin1Char('('))); | ||
249 | while (stripped.indexOf(QLatin1String("::")) >= 0) | 250 | while (stripped.indexOf(QLatin1String("::")) >= 0) | ||
250 | stripped = stripped.mid(stripped.indexOf(QLatin1String("::")) + 2); | 251 | stripped = stripped.mid(stripped.indexOf(QLatin1String("::")) + 2); | ||
251 | stripped = stripped.trimmed(); | 252 | stripped = stripped.trimmed(); | ||
252 | while (stripped.indexOf(0x20) >= 0) | 253 | while (stripped.indexOf(0x20) >= 0) | ||
Show All 20 Lines | 270 | else | |||
273 | } | 274 | } | ||
274 | } | 275 | } | ||
275 | else | 276 | else | ||
276 | node = new QTreeWidgetItem(m_symbols); | 277 | node = new QTreeWidgetItem(m_symbols); | ||
277 | node->setText(0, stripped); | 278 | node->setText(0, stripped); | ||
278 | if (mclass == 4) node->setIcon(0, QIcon(mtd)); | 279 | if (mclass == 4) node->setIcon(0, QIcon(mtd)); | ||
279 | else node->setIcon(0, QIcon(cls)); | 280 | else node->setIcon(0, QIcon(cls)); | ||
280 | node->setText(1, QString::number( tmpPos, 10)); | 281 | node->setText(1, QString::number( tmpPos, 10)); | ||
282 | node->setToolTip(0, strippedWithTypes); | ||||
281 | } | 283 | } | ||
282 | stripped.clear(); | 284 | stripped.clear(); | ||
283 | //retry = 0; | 285 | //retry = 0; | ||
284 | block = 3; | 286 | block = 3; | ||
285 | } | 287 | } | ||
286 | if(cl.at(j)==QLatin1Char('{') && structure == true) | 288 | if(cl.at(j)==QLatin1Char('{') && structure == true) | ||
287 | { | 289 | { | ||
288 | block = 3; | 290 | block = 3; | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |