mirror of https://github.com/JakubMelka/PDF4QT.git
Text to speech bugfixing
This commit is contained in:
parent
ca9e2f3149
commit
44889cfcb8
|
@ -148,8 +148,8 @@ void PDFTextToSpeech::setProxy(const pdf::PDFDrawWidgetProxy* proxy)
|
|||
void PDFTextToSpeech::initializeUI(QComboBox* speechLocaleComboBox,
|
||||
QComboBox* speechVoiceComboBox,
|
||||
QSlider* speechRateEdit,
|
||||
QSlider* speechVolumeEdit,
|
||||
QSlider* speechPitchEdit,
|
||||
QSlider* speechVolumeEdit,
|
||||
QToolButton* speechPlayButton,
|
||||
QToolButton* speechPauseButton,
|
||||
QToolButton* speechStopButton,
|
||||
|
@ -478,6 +478,9 @@ void PDFTextToSpeech::updateToNextPage(pdf::PDFInteger pageIndex)
|
|||
pdf::PDFAsynchronousTextLayoutCompiler* compiler = m_proxy->getTextLayoutCompiler();
|
||||
Q_ASSERT(compiler->isTextLayoutReady());
|
||||
|
||||
m_currentTextLayout = pdf::PDFTextLayout();
|
||||
m_textFlows.clear();
|
||||
|
||||
// Find first nonempty page
|
||||
while (m_currentPage < pageCount)
|
||||
{
|
||||
|
|
|
@ -76,8 +76,8 @@ public:
|
|||
void initializeUI(QComboBox* speechLocaleComboBox,
|
||||
QComboBox* speechVoiceComboBox,
|
||||
QSlider* speechRateEdit,
|
||||
QSlider* speechVolumeEdit,
|
||||
QSlider* speechPitchEdit,
|
||||
QSlider* speechVolumeEdit,
|
||||
QToolButton* speechPlayButton,
|
||||
QToolButton* speechPauseButton,
|
||||
QToolButton* speechStopButton,
|
||||
|
|
Loading…
Reference in New Issue