MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / commitEdit

Function commitEdit

pj_plotting/widget/src/TabbedPlotWidget.cpp:198–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197 private slots:
198 void commitEdit() {
199 if (!edit_active_) {
200 return;
201 }
202 edit_active_ = false;
203 const QString new_text = edit_->text();
204 label_->setText(new_text);
205 edit_->hide();
206 label_->show();
207 setFocus(Qt::OtherFocusReason);
208 emit renameCommitted(new_text);
209 }
210
211 void cancelEdit() {
212 if (!edit_active_) {

Callers

nothing calls this directly

Calls 4

textMethod · 0.45
setTextMethod · 0.45
hideMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected