summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-09-21 20:35:42 (UTC)
committer cniehaus <cniehaus>2002-09-21 20:35:42 (UTC)
commit023b34ea1584474a0ba625be4b099cb9a2de376c (patch) (side-by-side diff)
tree1c796b6b9068a9dd200cc9dfd0fda90294f5c109
parent394658a0a5430ce1195ee0393d174ed7f25835d9 (diff)
downloadopie-023b34ea1584474a0ba625be4b099cb9a2de376c.zip
opie-023b34ea1584474a0ba625be4b099cb9a2de376c.tar.gz
opie-023b34ea1584474a0ba625be4b099cb9a2de376c.tar.bz2
Fix for the PSE (make it bunt)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/psewidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp
index 449afef..ba9b71a 100644
--- a/noncore/apps/oxygen/psewidget.cpp
+++ b/noncore/apps/oxygen/psewidget.cpp
@@ -8,40 +8,41 @@
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* ( at your option ) any later version. *
* *
**************************************************************************/
#include <qpe/config.h>
#include <qlayout.h>
+#include <qpe/qpeapplication.h>
#include <qlist.h>
#include "dataTable.h"
#include "psewidget.h"
#include "oxyframe.h"
PSEWidget::PSEWidget() : QWidget()
{
this->setCaption( tr( "Periodic System" ) );
QVBoxLayout *vlay = new QVBoxLayout( this );
QGridLayout *grid = new QGridLayout( 18,10 );
int h=0, v=0;
- Config configobj( "oxygendata" );
+ Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File );
for( int n = 0 ; n < 118 ; n++ )
{
configobj.setGroup( QString::number( n+1 ));
position( n+1,h,v );
QList<OxyFrame> PSEframe;
PSEframe.append( new OxyFrame( this , QString::number(n) ) );
grid->addWidget( PSEframe.current() , v/40+1 , h/40 );
PSEframe.current()->setMinimumHeight( 11 );
PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) );
connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) ));
}