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

Method handle

src/frontend/spreadsheet/SearchReplaceWidget.cpp:1496–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1494 }
1495
1496 void handle(QAction* action, QLineEdit* lineEdit) {
1497 if (!m_actionPointers.contains(action))
1498 return;
1499
1500 const int cursorPos = lineEdit->cursorPosition();
1501 const int index = action->data().toUInt();
1502 const QString& before = m_insertBefore[index];
1503 const QString& after = m_insertAfter[index];
1504 lineEdit->insert(before + after);
1505 lineEdit->setCursorPosition(cursorPos + before.count());
1506 lineEdit->setFocus();
1507 }
1508};
1509
1510struct ParInfo {

Callers 1

Calls 6

insertMethod · 0.80
setCursorPositionMethod · 0.80
containsMethod · 0.45
dataMethod · 0.45
countMethod · 0.45
setFocusMethod · 0.45

Tested by

no test coverage detected