Diffstat (limited to 'noncore/apps/dagger/textwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/dagger/textwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/dagger/textwidget.cpp b/noncore/apps/dagger/textwidget.cpp index 9f7de66..2df6455 100644 --- a/noncore/apps/dagger/textwidget.cpp +++ b/noncore/apps/dagger/textwidget.cpp | |||
@@ -136,25 +136,25 @@ void TextWidget::setText() | |||
136 | 136 | ||
137 | if ( m_isBibleText ) | 137 | if ( m_isBibleText ) |
138 | { | 138 | { |
139 | m_textView->setVScrollBarMode( QTextView::AlwaysOff ); | 139 | m_textView->setVScrollBarMode( QTextView::AlwaysOff ); |
140 | 140 | ||
141 | m_abbrevKey = m_key->getShortText(); | 141 | m_abbrevKey = m_key->getShortText(); |
142 | 142 | ||
143 | QString fullText; | 143 | QString fullText; |
144 | 144 | ||
145 | for ( int i = 0; i < m_numVerses; i++ ) | 145 | for ( int i = 0; i < m_numVerses; i++ ) |
146 | { | 146 | { |
147 | QString key = ( QString ) m_module->KeyText(); | 147 | QString key = ( QString ) m_module->KeyText(); |
148 | QString verseStr = ( QString ) *m_module; | 148 | QString verseStr = QString::fromUtf8( *m_module ); |
149 | 149 | ||
150 | // Format current verse (adding chapter and/or book headings if necessary) | 150 | // Format current verse (adding chapter and/or book headings if necessary) |
151 | int verse = static_cast<sword::VerseKey>(m_module->Key()).Verse(); | 151 | int verse = static_cast<sword::VerseKey>(m_module->Key()).Verse(); |
152 | if ( verse == 1 ) | 152 | if ( verse == 1 ) |
153 | { | 153 | { |
154 | int chapter = static_cast<sword::VerseKey>(m_module->Key()).Chapter(); | 154 | int chapter = static_cast<sword::VerseKey>(m_module->Key()).Chapter(); |
155 | if ( chapter == 1 ) | 155 | if ( chapter == 1 ) |
156 | { | 156 | { |
157 | QString book = static_cast<sword::VerseKey>(m_module->Key()).getBookName(); | 157 | QString book = static_cast<sword::VerseKey>(m_module->Key()).getBookName(); |
158 | verseStr = QString( "<p><center><big><b>%1</b></big></center><br><center><b>Chapter %1</b></center><p><b>%2</b> %3<p>" ) | 158 | verseStr = QString( "<p><center><big><b>%1</b></big></center><br><center><b>Chapter %1</b></center><p><b>%2</b> %3<p>" ) |
159 | .arg( book ).arg( chapter ).arg( verse ).arg( verseStr ); | 159 | .arg( book ).arg( chapter ).arg( verse ).arg( verseStr ); |
160 | } | 160 | } |