MCPcopy Create free account
hub / github.com/KDE/labplot / checkColumnRow

Method checkColumnRow

src/frontend/spreadsheet/SearchReplaceWidget.cpp:1194–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1192}
1193
1194bool SearchReplaceWidget::checkColumnRow(Column* column,
1195 DataType type,
1196 int row,
1197 OperatorText opText,
1198 Operator opNumeric,
1199 Operator opDateTime,
1200 const QString& pattern1,
1201 const QString pattern2,
1202 Qt::CaseSensitivity cs) {
1203 bool match = false;
1204 switch (type) {
1205 case DataType::Text:
1206 match = checkCellText(column->textAt(row), pattern1, opText, cs);
1207 break;
1208 case DataType::Numeric:
1209 match = checkCellNumeric(column->valueAt(row), pattern1, pattern2, opNumeric);
1210 break;
1211 case DataType::DateTime:
1212 match = checkCellDateTime(column->dateTimeAt(row), uiSearchReplace.dteValue1->dateTime(), uiSearchReplace.dteValue2->dateTime(), opDateTime);
1213 break;
1214 }
1215
1216 return match;
1217}
1218
1219bool SearchReplaceWidget::checkCellText(const QString& cellText, const QString& pattern, OperatorText op, Qt::CaseSensitivity cs) {
1220 bool match = false;

Callers

nothing calls this directly

Calls 4

textAtMethod · 0.45
valueAtMethod · 0.45
dateTimeAtMethod · 0.45
dateTimeMethod · 0.45

Tested by

no test coverage detected