-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/packetview.cpp | 7 |
2 files changed, 6 insertions, 2 deletions
@@ -9,4 +9,5 @@ ---------- * #1695 - Date selector use too small fontsize on VGA screen (hrw) + * n.a. - remove hardcoded font size from wellenreiter (hrw) 2005-09-11 Opie 1.2.1 diff --git a/noncore/net/wellenreiter/gui/packetview.cpp b/noncore/net/wellenreiter/gui/packetview.cpp index d71111f..ffe2f01 100644 --- a/noncore/net/wellenreiter/gui/packetview.cpp +++ b/noncore/net/wellenreiter/gui/packetview.cpp @@ -21,4 +21,5 @@ #include <opie2/olistview.h> #include <opie2/oapplication.h> +#include <qpe/config.h> /* QT */ @@ -39,4 +40,7 @@ PacketView::PacketView( QWidget * parent, const char * name, WFlags f ) :QFrame( parent, name, f ) { + Config c( "qpe" ); + c.setGroup( "Appearance" ); + _number = new QSpinBox( this ); _number->setPrefix( "Pkt# " ); @@ -48,9 +52,8 @@ PacketView::PacketView( QWidget * parent, const char * name, WFlags f ) _list->setColumnAlignment( 1, Qt::AlignLeft ); _list->setAllColumnsShowFocus( true ); - _list->setFont( QFont( "Fixed", 8 ) ); _hex = new QTextView( this ); _hex->setMargin( 0 ); - _hex->setFont( QFont( "Fixed", 8 ) ); + _hex->setFont( QFont( c.readEntry( "FixedFontFamily", "Fixed" ), c.readNumEntry( "FixedFontSize", 8 ) ) ); QVBoxLayout* vb = new QVBoxLayout( this, 2, 2 ); |