]> git.sesse.net Git - vlc/commitdiff
qt4: More static_casts to null in preference components
authorJuho Vähä-Herttua <juhovh@iki.fi>
Sat, 24 Jul 2010 20:31:10 +0000 (23:31 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 25 Jul 2010 00:50:18 +0000 (02:50 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp

index 9a9202a2c884ce3029643b393fc6ecddfb626994..2a5f6113811be7308e6a80dd38eda4d95d4a025d 100644 (file)
@@ -404,7 +404,7 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
     }
 
     QLabel *titleLabel = new QLabel( head );
-    QFont titleFont = QApplication::font( static_cast<QWidget*>(0) );
+    QFont titleFont = QApplication::font();
     titleFont.setPointSize( titleFont.pointSize() + 6 );
     titleLabel->setFont( titleFont );
 
index 6aaa64fc9bd3c3db77c3bbd75d4f7f470bf9c40e..e92b60390e1f54a628db84dc166a4ce0c8e5ceb6 100644 (file)
@@ -191,7 +191,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 
     // Title Label
     QLabel *panel_label = new QLabel;
-    QFont labelFont = QApplication::font( static_cast<QWidget*>(0) );
+    QFont labelFont = QApplication::font();
     labelFont.setPointSize( labelFont.pointSize() + 6 );
     panel_label->setFont( labelFont );
 
@@ -200,7 +200,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
     title_line->setFrameShape(QFrame::HLine);
     title_line->setFrameShadow(QFrame::Sunken);
 
-    QFont italicFont = QApplication::font( static_cast<QWidget*>(0) );
+    QFont italicFont = QApplication::font();
     italicFont.setItalic( true );
 
     switch( number )