summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2005-01-05 15:48:48 (UTC)
committer mickeyl <mickeyl>2005-01-05 15:48:48 (UTC)
commitfecdd65b5188f3492ae92108b9d19393011de666 (patch) (side-by-side diff)
tree9f19107d3f722d59bdaa789c1d8dd07ea336d84e
parent34ae22499b91f483f1cf505e515047ea11e8eaf0 (diff)
downloadopie-fecdd65b5188f3492ae92108b9d19393011de666.zip
opie-fecdd65b5188f3492ae92108b9d19393011de666.tar.gz
opie-fecdd65b5188f3492ae92108b9d19393011de666.tar.bz2
read font size from qpe.conf
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/sysinfo.pro2
-rw-r--r--noncore/settings/sysinfo/sysloginfo.cpp7
2 files changed, 6 insertions, 3 deletions
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
@@ -22,15 +22,15 @@ SOURCES = main.cpp \
detail.cpp \
contrib/dhry.c contrib/fft.c \
benchmarkinfo.cpp \
sysloginfo.cpp \
versioninfo.cpp \
sysinfo.cpp
INCLUDEPATH += $(OPIEDIR)/include
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
@@ -13,25 +13,26 @@
** packaging of this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
**********************************************************************/
#include "sysloginfo.h"
#include "detail.h"
/* OPIE */
#include <opie2/olistview.h>
-#include <qpe/qpeapplication.h>
+#include <opie2/oconfig.h>
+using namespace Opie::Core;
using namespace Opie::Ui;
/* QT */
#include <qcombobox.h>
#include <qfile.h>
#include <qlayout.h>
#include <qmessagebox.h>
#include <qpushbutton.h>
#include <qsocketnotifier.h>
#include <qtextbrowser.h>
#include <qtimer.h>
#include <qwhatsthis.h>
@@ -57,25 +58,27 @@ using namespace Opie::Ui;
const unsigned int bufsize = 16384;
char buf[bufsize];
SyslogInfo::SyslogInfo( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
QGridLayout *layout = new QGridLayout( this );
layout->setSpacing( 4 );
layout->setMargin( 4 );
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( "..." );
memset( buf, 0, bufsize );
::klogctl( SYSLOG_READ_ALL, buf, bufsize );
syslogview->setText( buf );
#ifdef APPEND
fd = ::open( "/proc/kmsg", O_RDONLY|O_SYNC );
if ( fd == -1 )
{
syslogview->setText( "Couldn't open /proc/kmsg: " + QString( strerror( errno ) ) );