staticText();
return m_richText;
}
+
+QString ApiTraceCall::filterText() const
+{
+ if (!m_filterText.isEmpty())
+ return m_filterText;
+
+ m_filterText = name;
+ for (int i = 0; i < argNames.count(); ++i) {
+ m_filterText += argNames[i];
+ m_filterText += QString::fromLatin1(" = ");
+ m_filterText += apiVariantToString(argValues[i]);
+ if (i < argNames.count() - 1)
+ m_filterText += QString::fromLatin1(", ");
+ }
+ m_filterText += QLatin1String(")");
+
+ if (returnValue.isValid()) {
+ m_filterText += QLatin1String(" = ");
+ m_filterText += apiVariantToString(returnValue);
+ }
+ return m_filterText;
+}
QVariantList argValues;
QVariant returnValue;
+ QString filterText() const;
QString richText() const;
QStaticText staticText() const;
private:
mutable QString m_richText;
mutable QStaticText m_staticText;
+ mutable QString m_filterText;
};
Q_DECLARE_METATYPE(ApiTraceCall);
Q_DECLARE_METATYPE(ApiTraceCall*);
if (function.contains(QLatin1String("wglGetProcAddress")))
return false;
- QString fullText = call->richText();
+ QString fullText = call->filterText();
if (function.contains(QLatin1String("glGetString")) &&
fullText.contains(QLatin1String("GL_EXTENSIONS")))
return false;