MCPcopy Create free account
hub / github.com/baldurk/renderdoc / textEditControl

Function textEditControl

qrenderdoc/Windows/EventBrowser.cpp:3670–3683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3668QMap<QString, BuiltinFilterCallbacks> EventFilterModel::m_BuiltinFilters;
3669
3670static bool textEditControl(QWidget *sender)
3671{
3672 if(qobject_cast<QLineEdit *>(sender) || qobject_cast<QTextEdit *>(sender) ||
3673 qobject_cast<QAbstractSpinBox *>(sender) || qobject_cast<ScintillaEditBase *>(sender))
3674 {
3675 return true;
3676 }
3677
3678 QComboBox *combo = qobject_cast<QComboBox *>(sender);
3679 if(combo && combo->isEditable())
3680 return true;
3681
3682 return false;
3683}
3684
3685void AddFilterSelections(QTextCursor cursor, int &idx, QColor backCol, QColor foreCol,
3686 QVector<FilterExpression> &exprs, QList<QTextEdit::ExtraSelection> &sels)

Callers 1

EventBrowserMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected