pino created this revision. pino added a reviewer: mlaurent. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. pino requested review of this revision.
REVISION 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. REPOSITORY R310 KTextWidgets BRANCH lazy-qtexttospeech (branched from master) REVISION DETAIL https://phabricator.kde.org/D16001 AFFECTED FILES src/widgets/ktextedit.cpp To: pino, mlaurent Cc: kde-frameworks-devel, michaelh, ngraham, bruns