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

List:       kde-commits
Subject:    playground/base/plasma/applets/rssnow
From:       Laurent Montel <montel () kde ! org>
Date:       2008-04-24 7:44:27
Message-ID: 1209023067.950884.28196.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 800410 by mlaurent:

Compile++


 M  +3 -3      single-feed.cpp  


--- trunk/playground/base/plasma/applets/rssnow/single-feed.cpp #800409:800410
@@ -50,7 +50,7 @@
     m_background = new Plasma::Svg();
     m_background->setImagePath("rssnow/background");
 
-    QFont font = Plasma::Theme::defaultTheme()->font();
+    QFont font = Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont);
     font.setPointSize(font.pointSize() - 2); //because it looks prettier, but
 
     //ok, so why use a QGraphicsTextItem and not display it? It causes a lot of
@@ -71,7 +71,7 @@
     qreal width = m_rect.width();
 
     p->setRenderHint(QPainter::Antialiasing);
-    QFont font = Plasma::Theme::defaultTheme()->font();
+    QFont font = Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont);
     font.setPointSize(font.pointSize() - 2); //because it looks prettier, but
                                              //we should probably fetch the
                                              //'small' font from the theme...
@@ -87,7 +87,7 @@
     }
 
     //draw title
-    p->setPen(Plasma::Theme::defaultTheme()->textColor());
+    p->setPen(Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor));
     font.setBold(true);
     p->setFont(font);
     QString text;
[prev in list] [next in list] [prev in thread] [next in thread] 

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