Crazy notion: make the font setting on widgets work.
authorzack <zack@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 Dec 2006 02:52:19 +0000 (02:52 +0000)
committerzack <zack@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 Dec 2006 02:52:19 +0000 (02:52 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18118 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/qt/WidgetQt.cpp

index 8ce464a579e32314f956f786358b1b2c56f122d6..ff01a8ee7649308b9f62f5f32deb7061651a5497 100644 (file)
@@ -1,3 +1,12 @@
+2006-12-09  Zack Rusin  <zack@kde.org>
+
+        Reviewed by Lars.
+
+        Correctly set the font on widgets.
+
+        * platform/qt/WidgetQt.cpp:
+        (WebCore::Widget::setFont):
+
 2006-12-09  Adam Treat  <treat@kde.org>
 
         Reviewed by Zack
index e7c9bcdb83511ed3577ed149966b56f870a22969..e16bfb8589619e95313c9f53c2dc738a42613481 100644 (file)
@@ -50,7 +50,8 @@ struct WidgetPrivate
 
     QWidget* m_parent;
     QWidget* m_widget;
-    Font m_font;
+
+    Font     m_font;
 };
 
 Widget::Widget()
@@ -112,6 +113,7 @@ void Widget::setFont(const Font& font)
 {
     if (data->m_widget)
         data->m_widget->setFont(font);
+    data->m_font = font;
 }
 
 void Widget::setCursor(const Cursor& cursor)