ktextedit: lazy load the QTextToSpeech object
ClosedPublic

Authored by pino on Oct 7 2018, 10:16 AM.

Details

Summary

Create the QTextToSpeech object on demand, i.e. only at the first
request to speak a text. While this will make the the first request
slower (but only the first), the creation of each KTextEdit widget is
faster again.

Test Plan

Builds fine, unit tests runs fine, ktextedittest still works as
expected.

Diff Detail

Repository
R310 KTextWidgets
Branch
lazy-qtexttospeech (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 3569
Build 3587: arc lint + arc unit
pino created this revision.Oct 7 2018, 10:16 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptOct 7 2018, 10:17 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
pino requested review of this revision.Oct 7 2018, 10:17 AM
mlaurent accepted this revision.Oct 7 2018, 1:35 PM
This revision is now accepted and ready to land.Oct 7 2018, 1:35 PM
pino closed this revision.Oct 7 2018, 2:13 PM