[vlc-devel] [PATCH 2/6] qt4: More static_casts to null in preference components
Juho Vähä-Herttua
juhovh at iki.fi
Sat Jul 24 22:31:10 CEST 2010
---
.../gui/qt4/components/complete_preferences.cpp | 2 +-
modules/gui/qt4/components/simple_preferences.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/complete_preferences.cpp b/modules/gui/qt4/components/complete_preferences.cpp
index 9a9202a..2a5f611 100644
--- a/modules/gui/qt4/components/complete_preferences.cpp
+++ b/modules/gui/qt4/components/complete_preferences.cpp
@@ -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 );
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index 6aaa64f..e92b603 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -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 )
--
1.6.5.7
More information about the vlc-devel
mailing list