StelScriptSyntaxHighlighter.cpp   StelScriptSyntaxHighlighter.cpp 
skipping to change at line 119 skipping to change at line 119
foreach (StelModule* m, mmgr->getAllModules()) foreach (StelModule* m, mmgr->getAllModules())
{ {
moduleNames << "\\b" + m->objectName() + "\\b"; moduleNames << "\\b" + m->objectName() + "\\b";
// for each one dump known public slots // for each one dump known public slots
const QMetaObject* metaObject = m->metaObject(); const QMetaObject* metaObject = m->metaObject();
for(int i = metaObject->methodOffset(); i < metaObject->meth odCount(); ++i) for(int i = metaObject->methodOffset(); i < metaObject->meth odCount(); ++i)
{ {
if (metaObject->method(i).methodType() == QMetaMetho d::Slot && metaObject->method(i).access() == QMetaMethod::Public) if (metaObject->method(i).methodType() == QMetaMetho d::Slot && metaObject->method(i).access() == QMetaMethod::Public)
{ {
QString fn = metaObject->method(i).signature (); QString fn = metaObject->method(i).methodSig nature();
fn.replace(QRegExp("\\(.*$"), ""); fn.replace(QRegExp("\\(.*$"), "");
fn = m->objectName() + "\\." + fn; fn = m->objectName() + "\\." + fn;
knownFunctionNames << fn; knownFunctionNames << fn;
} }
} }
} }
moduleNames << "\\bStelSkyLayerMgr\\b" << "\\bStelSkyDrawer\\b" << " \\bcore\\b"; moduleNames << "\\bStelSkyImageMgr\\b" << "\\bStelSkyDrawer\\b" << " \\bcore\\b";
foreach(const QString &pattern, moduleNames) foreach(const QString &pattern, moduleNames)
{ {
rule.pattern = QRegExp(pattern); rule.pattern = QRegExp(pattern);
rule.format = &moduleFormat; rule.format = &moduleFormat;
highlightingRules.append(rule); highlightingRules.append(rule);
} }
foreach(const QString &pattern, knownFunctionNames) foreach(const QString &pattern, knownFunctionNames)
{ {
rule.pattern = QRegExp(pattern); rule.pattern = QRegExp(pattern);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/