+2003-10-26 Hideki Ikemoto <ikemo@users.sourceforge.jp>
+
+ * use CSS to set font size.
+
2003-10-16 Hideki Ikemoto <ikemo@users.sourceforge.jp>
* version 0.61 released.
QHBoxLayout* aLayout = new QHBoxLayout(threadFrame);
aLayout->addWidget(m_threadPart->view());
- m_threadPart->setZoomFactor(120); // XXX
+// m_threadPart->setZoomFactor(120); // XXX
{
SearchButton->setPixmap( SmallIcon("find") );
HighLightButton->setPixmap( SmallIcon("idea") );
void KitaThreadView::setFont( const QFont& font )
{
- m_threadPart->setStandardFont(font.family());
+// m_threadPart->setStandardFont(font.family());
subjectLabel->setFont(font);
+
+ DOM::CSSStyleDeclaration style = m_threadPart->htmlDocument().body().style();
+ style.setProperty( "font", font.family(), "" );
+ style.setProperty( "font-size", QString("%1pt").arg( font.pointSize() ), "" );
}
void KitaThreadView::slotPostStarted( KIO::Job*, const Kita::PostInfo& info)