Diffstat (limited to 'noncore/apps/opie-reader/QTReaderApp.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/QTReaderApp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/QTReaderApp.cpp b/noncore/apps/opie-reader/QTReaderApp.cpp index 2044b1d..7333a28 100644 --- a/noncore/apps/opie-reader/QTReaderApp.cpp +++ b/noncore/apps/opie-reader/QTReaderApp.cpp @@ -2140,65 +2140,65 @@ void QTReaderApp::do_regaction() } void QTReaderApp::do_settarget(const QString& _txt) { int ind = _txt.find('/'); if (ind == -1) { m_targetapp = ""; m_targetmsg = ""; QMessageBox::information(this, PROGNAME, "Format is\nappname/messagename"); } else { m_targetapp = _txt.left(ind); m_targetmsg = _txt.right(_txt.length()-ind-1); } } void QTReaderApp::setfont() { for (int i = 1; i <= m_fontSelector->count(); i++) { if (m_fontSelector->text(i) == reader->m_fontname) { m_fontSelector->setCurrentItem(i); break; } } m_fontBar->show(); m_fontVisible = true; } -void QTReaderApp::setfontHelper(const QString& lcn, int size = 0) +void QTReaderApp::setfontHelper(const QString& lcn, int size) { if (size == 0) size = reader->m_fontControl.currentsize(); QFont f(lcn, 10 /*, QFont::Bold*/); qDebug("bs"); bkmkselector->setFont( f ); qDebug("re"); regEdit->setFont( f ); qDebug("se"); searchEdit->setFont( f ); qDebug("aw"); m_annoWin->setFont( f ); reader->m_fontname = lcn; qDebug("cf1"); if (!reader->ChangeFont(size)) { qDebug("cf2"); reader->ChangeFont(size); } qDebug("ref"); reader->refresh(); m_fontBar->hide(); m_fontVisible = false; qDebug("showedit"); if (reader->isVisible()) showEditTools(); qDebug("showeditdone"); } void QTReaderApp::do_setfont(const QString& lcn) { setfontHelper(lcn); } |