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. */
| 526 | returns true if a QLineEdit or QLineEdit is in focus because Qt handles these internally. |
| 527 | */ |
| 528 | bool KDiff3App::canCut() |
| 529 | { |
| 530 | QWidget* focus = focusWidget(); |
| 531 | |
| 532 | return (qobject_cast<QLineEdit*>(focus) != nullptr || qobject_cast<QTextEdit*>(focus) != nullptr); |
| 533 | } |
| 534 | |
| 535 | /*canSave*/ |
| 536 | bool KDiff3App::canSave() |
nothing calls this directly
no outgoing calls
no test coverage detected