MCPcopy Create free account
hub / github.com/cxasm/notepad-- / appendToFindReplaceTable

Method appendToFindReplaceTable

src/batchfindreplace.cpp:79–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78
79void BatchFindReplace::appendToFindReplaceTable(QStringList& findKeyword)
80{
81 if (findKeyword.isEmpty())
82 {
83 return;
84 }
85
86 int rNum = ui.findReplaceTable->rowCount();
87
88 for (int i = 0; i < findKeyword.size(); ++i)
89 {
90 int curRow = rNum + i;
91 ui.findReplaceTable->insertRow(curRow);
92
93 QTableWidgetItem* itemFind = new QTableWidgetItem(findKeyword.at(i));
94 ui.findReplaceTable->setItem(curRow, 0, itemFind);
95 ui.findReplaceTable->setItem(curRow, 1, new QTableWidgetItem());
96 }
97}
98
99bool BatchFindReplace::tranInputKeyword(QString& findKeyWord, QStringList& outputKeyWordList)
100{

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected