Only enable the action when there's text being spoken or when speech is paused.
Also added ability to select the QtSpeech plugin/engine to use so it doesn't randomly choose one for us.
Details
Pause and resume are working here.
Diff Detail
- Repository
- R223 Okular
- Branch
- pauseresumespeech
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 17116 Build 17134: arc lint + arc unit
ui/pageview.cpp | ||
---|---|---|
2606 ↗ | (On Diff #66979) | Please avoid this whitespace change. |
Changed engines stringlist to const and use for instead of foreach.
Also removed context menu action for pause resume
- Add user okular user setting for which QtSpeech engine to use.
Done. I think this is ready to use now. When users change the engine in the config dialog the tts object stops any speech and recreates the underlying QTetxToSpeech object with the chosen engine. Stop action is also enabled when paused or speaking, the same as the pause/resume action.
Sorry for being a pain, but your patch contains lots of whitespace changes again (in conf/dlgaccessibilitybase.ui). I agree that you probably do want them changed, but please do so in a separate patch.
Besides, can you please post your patch as a merge request on https://invent.kde.org/kde/okular/ ? That is not purely cosmetic -- invent.kde.org has a CI system.
Besides that: I like the patch!
conf/dlgaccessibility.cpp | ||
---|---|---|
43 | This doesn't follow the coding style in the rest of the file: There should be a whitespace right after '(' and before ')'. |
Ok, removed whitespace changes that designer did for me and pushed to my clone and created new merge request here: https://invent.kde.org/kde/okular/merge_requests/51