[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kopete/libkopete/ui
From:       Jason Keirstead <jason () keirstead ! org>
Date:       2003-03-19 20:17:40
[Download RAW message or body]

CVS commit by brunes: 

Use font size as well as face


  M +6 -2      chatview.cpp   1.212


--- kdenonbeta/kopete/libkopete/ui/chatview.cpp  #1.211:1.212
@@ -85,8 +85,10 @@ ChatView::ChatView( KopeteMessageManager
 
         chatView->begin();
-        chatView->write( QString::fromLatin1( \
"<html><head><style>body{font-family:%1;color:%2}td{font-family:%3;color:%4}</style></head><body \
style=\"background-repeat:no-repeat;background-attachment:fixed\" \
bgcolor=\"%5\"></body></html>" ) +        chatView->write( QString::fromLatin1( \
"<html><head><style>body{font-family:%1;font-size:%2pt;color:%3}td{font-family:%4;font-size:%5pt;color:%6}</style></head><body \
style=\"background-repeat:no-repeat;background-attachment:fixed\" \
                bgcolor=\"%7\"></body></html>" )
                 .arg( KopetePrefs::prefs()->fontFace().family() )
+                .arg( KopetePrefs::prefs()->fontFace().pointSize() )
                 .arg( KopetePrefs::prefs()->textColor().name() )
                 .arg( KopetePrefs::prefs()->fontFace().family() )
+                .arg( KopetePrefs::prefs()->fontFace().pointSize() )
                 .arg( KopetePrefs::prefs()->textColor().name() )
                 .arg( KopetePrefs::prefs()->bgColor().name() ) );
@@ -892,8 +894,10 @@ void ChatView::slotRefreshNodes()
 
         HTMLElement styleElement = \
                chatView->document().documentElement().firstChild().firstChild();
-        styleElement.setInnerText( QString::fromLatin1( \
"body{font-family:%1;color:%2}td{font-family:%3;color:%4}" ) +        \
styleElement.setInnerText( QString::fromLatin1( \
"body{font-family:%1;font-size:%2pt;color:%3}td{font-family:%4;font-size:%5pt;color:%6}" \
                )
                 .arg( KopetePrefs::prefs()->fontFace().family() )
+                .arg( KopetePrefs::prefs()->fontFace().pointSize() )
                 .arg( KopetePrefs::prefs()->textColor().name() )
                 .arg( KopetePrefs::prefs()->fontFace().family() )
+                .arg( KopetePrefs::prefs()->fontFace().pointSize() )
                 .arg( KopetePrefs::prefs()->textColor().name() ) );
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic