MCPcopy Create free account
hub / github.com/KDE/kdiff3 / canCut

Method canCut

src/kdiff3.cpp:528–533  ·  view source on GitHub ↗

This function is only concerned with qt objects that don't support canCut. allowCut() or's the results from all canCut signals returns true if a QLineEdit or QLineEdit is in focus because Qt handles these internally. */

Source from the content-addressed store, hash-verified

526 returns true if a QLineEdit or QLineEdit is in focus because Qt handles these internally.
527*/
528bool KDiff3App::canCut()
529{
530 QWidget* focus = focusWidget();
531
532 return (qobject_cast<QLineEdit*>(focus) != nullptr || qobject_cast<QTextEdit*>(focus) != nullptr);
533}
534
535/*canSave*/
536bool KDiff3App::canSave()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected