From fecdd65b5188f3492ae92108b9d19393011de666 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 05 Jan 2005 15:48:48 +0000 Subject: read font size from qpe.conf --- diff --git a/noncore/settings/sysinfo/sysinfo.pro b/noncore/settings/sysinfo/sysinfo.pro index 46d6117..fc754d7 100644 --- a/noncore/settings/sysinfo/sysinfo.pro +++ b/noncore/settings/sysinfo/sysinfo.pro @@ -31,6 +31,6 @@ DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe -lopiecore2 -lopieui2 DEFINES += UNIX TARGET = sysinfo -VERSION = 1.2.0 +VERSION = 1.2.1 include( $(OPIEDIR)/include.pro ) diff --git a/noncore/settings/sysinfo/sysloginfo.cpp b/noncore/settings/sysinfo/sysloginfo.cpp index 89c04e0..a9e98e3 100644 --- a/noncore/settings/sysinfo/sysloginfo.cpp +++ b/noncore/settings/sysinfo/sysloginfo.cpp @@ -22,7 +22,8 @@ /* OPIE */ #include -#include +#include +using namespace Opie::Core; using namespace Opie::Ui; /* QT */ @@ -66,7 +67,9 @@ SyslogInfo::SyslogInfo( QWidget* parent, const char* name, WFlags fl ) syslogview = new QTextView( this ); syslogview->setTextFormat( PlainText ); - syslogview->setFont( QFont( "Fixed" ) ); + OConfig cfg( "qpe" ); + cfg.setGroup( "Appearance" ); + syslogview->setFont( QFont( "Fixed", cfg.readNumEntry( "FontSize", 10 ) ) ); layout->addWidget( syslogview, 0, 0 ); syslogview->setText( "..." ); -- cgit v0.9.0.2