Replace KStandardAction::PasteText with KStandardAction::Paste
ClosedPublic

Authored by elvisangelaccio on Aug 18 2017, 3:35 PM.

Details

Summary

The PasteText standard action creates a KPasteTextAction rather than
a simple QAction. KPasteTextAction is a very old class that has been not
functional for years. Since this action is already used as if it actually
were a QAction, just use KStandardAction::Paste which is what everyone
else does.

See also https://phabricator.kde.org/D7294

Test Plan

Paste action still works in kate.

Diff Detail

Repository
R39 KTextEditor
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 18 2017, 3:35 PM
Restricted Application added subscribers: Frameworks, kwrite-devel. · View Herald Transcript
cullmann accepted this revision.Aug 21 2017, 6:11 AM
cullmann added a subscriber: cullmann.

Sounds reasonable!

This revision is now accepted and ready to land.Aug 21 2017, 6:11 AM
This revision was automatically updated to reflect the committed changes.