author | cniehaus <cniehaus> | 2002-12-27 11:12:37 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-27 11:12:37 (UTC) |
commit | 5e10bb67a740fdbe5744cd2a780a833fafd5c0e5 (patch) (side-by-side diff) | |
tree | 4d70f5a524fbe136c67585ac7b8550962af35503 /noncore/apps/oxygen/dataTable.cpp | |
parent | 6ca8a429b121dbbdbbfbde453cd2cd1412315aa8 (diff) | |
download | opie-5e10bb67a740fdbe5744cd2a780a833fafd5c0e5.zip opie-5e10bb67a740fdbe5744cd2a780a833fafd5c0e5.tar.gz opie-5e10bb67a740fdbe5744cd2a780a833fafd5c0e5.tar.bz2 |
go mickeyl go
Diffstat (limited to 'noncore/apps/oxygen/dataTable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 661eb5a..951788b 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp @@ -24,14 +24,17 @@ #include <qfont.h> #include <qlayout.h> #include <qpe/qpeapplication.h> #include <qstringlist.h> -OxydataWidget::OxydataWidget(QWidget *parent, const char *name, QStringList *list ) : QWidget( parent,name ) +OxydataWidget::OxydataWidget(QWidget *parent, const char *name, const QStringList &list ) : QWidget( parent,name ) { + names = list; + QStringList::ConstIterator it = names.at(10); + qDebug( *it ); QGridLayout *qgrid = new QGridLayout( this, 2,1 ); QHBox *hbox = new QHBox( this ); left = new QLabel( hbox ); middle = new QLabel( hbox ); right = new QLabel( hbox ); @@ -50,18 +53,20 @@ OxydataWidget::OxydataWidget(QWidget *parent, const char *name, QStringList *lis qgrid->addWidget( hbox,0,0 ); qgrid->addWidget( DataTable,1,0 ); } void OxydataWidget::setElement( int el ) { + QStringList::ConstIterator it = names.at(el+1); + qDebug( *it ); Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File ); configobj.setGroup( QString::number( el+1 )); left->setText( configobj.readEntry( "Symbol" ) ); - middle->setText( configobj.readEntry( "Name" ) ); + middle->setText( *it ); right->setText( QString::number( el+1 ) ); DataTable->setText( 0,1,tr( "%1 u" ).arg( configobj.readEntry( "Weight" ) ) ); DataTable->setText( 1,1,configobj.readEntry( "Block" ) ); DataTable->setText( 2,1,configobj.readEntry( "Group" ) ); |