| 3668 | QMap<QString, BuiltinFilterCallbacks> EventFilterModel::m_BuiltinFilters; |
| 3669 | |
| 3670 | static 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 | |
| 3685 | void AddFilterSelections(QTextCursor cursor, int &idx, QColor backCol, QColor foreCol, |
| 3686 | QVector<FilterExpression> &exprs, QList<QTextEdit::ExtraSelection> &sels) |