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