summaryrefslogtreecommitdiff
authorhrw <hrw>2005-09-16 20:31:28 (UTC)
committer hrw <hrw>2005-09-16 20:31:28 (UTC)
commit6fb2ee0976a4b6c67b9f0c59cfd5d85143208bd4 (patch) (side-by-side diff)
tree3817ebb22724f7135d144ccede9891d7b07dee2e
parent12c40601c1abc01640a1d058b4ed781390eae372 (diff)
downloadopie-6fb2ee0976a4b6c67b9f0c59cfd5d85143208bd4.zip
opie-6fb2ee0976a4b6c67b9f0c59cfd5d85143208bd4.tar.gz
opie-6fb2ee0976a4b6c67b9f0c59cfd5d85143208bd4.tar.bz2
removed hardcoded font size from wellenreiter
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--noncore/net/wellenreiter/gui/packetview.cpp7
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b0f1d9..ebd9d92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,8 +7,9 @@
Fixed Bugs
----------
* #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
@@ -19,8 +19,9 @@
#include <opie2/opcap.h>
#include <opie2/odebug.h>
#include <opie2/olistview.h>
#include <opie2/oapplication.h>
+#include <qpe/config.h>
/* QT */
#include <qfont.h>
#include <qlabel.h>
@@ -37,8 +38,11 @@ using namespace Opie::Ui;
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# " );
_label = new QLabel( this );
_list = new OListView( this );
@@ -46,13 +50,12 @@ PacketView::PacketView( QWidget * parent, const char * name, WFlags f )
_list->addColumn( "Packet Type" );
_list->setColumnAlignment( 0, Qt::AlignCenter );
_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 );
QHBoxLayout* hb = new QHBoxLayout( vb, 2 );
hb->addWidget( _label, 5 );