summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/dataTable.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/oxygen/dataTable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/dataTable.cpp9
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
@@ -29,4 +29,7 @@
-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 );
@@ -55,2 +58,4 @@ void OxydataWidget::setElement( int el )
{
+ QStringList::ConstIterator it = names.at(el+1);
+ qDebug( *it );
Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File );
@@ -60,3 +65,3 @@ void OxydataWidget::setElement( int el )
left->setText( configobj.readEntry( "Symbol" ) );
- middle->setText( configobj.readEntry( "Name" ) );
+ middle->setText( *it );
right->setText( QString::number( el+1 ) );