summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:43:14 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:43:14 -0600
commit79b21d47bce1ee428affc97534cd8b257232a871 (patch)
tree0df1fa0109d9f2bcef932eda8b5c25b2e06669ed /ksysguard/gui/SensorDisplayLib
parent9a898d493f493adbc404f7223043c85f3817472b (diff)
downloadtdebase-79b21d47bce1ee428affc97534cd8b257232a871.tar.gz
tdebase-79b21d47bce1ee428affc97534cd8b257232a871.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib')
-rw-r--r--ksysguard/gui/SensorDisplayLib/ListView.cc12
-rw-r--r--ksysguard/gui/SensorDisplayLib/ProcessList.cc16
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorDisplay.cc2
3 files changed, 15 insertions, 15 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/ListView.cc b/ksysguard/gui/SensorDisplayLib/ListView.cc
index 97b1a3c0f..d11826177 100644
--- a/ksysguard/gui/SensorDisplayLib/ListView.cc
+++ b/ksysguard/gui/SensorDisplayLib/ListView.cc
@@ -51,8 +51,8 @@ int PrivateListViewItem::compare( TQListViewItem *item, int col, bool ascending
int type = ((PrivateListView*)listView())->columnType( col );
if ( type == PrivateListView::Int ) {
- int prev = (int)KGlobal::locale()->readNumber( key( col, ascending ) );
- int next = (int)KGlobal::locale()->readNumber( item->key( col, ascending ) );
+ int prev = (int)TDEGlobal::locale()->readNumber( key( col, ascending ) );
+ int next = (int)TDEGlobal::locale()->readNumber( item->key( col, ascending ) );
if ( prev < next )
return -1;
else if ( prev == next )
@@ -60,8 +60,8 @@ int PrivateListViewItem::compare( TQListViewItem *item, int col, bool ascending
else
return 1;
} else if ( type == PrivateListView::Float ) {
- double prev = KGlobal::locale()->readNumber( key( col, ascending ) );
- double next = KGlobal::locale()->readNumber( item->key( col, ascending ) );
+ double prev = TDEGlobal::locale()->readNumber( key( col, ascending ) );
+ double next = TDEGlobal::locale()->readNumber( item->key( col, ascending ) );
if ( prev < next )
return -1;
else
@@ -130,9 +130,9 @@ void PrivateListView::update(const TQString& answer)
KSGRD::SensorTokenizer records(lines[i], '\t');
for (uint j = 0; j < records.count(); j++) {
if ( mColumnTypes[ j ] == "f" )
- item->setText(j, KGlobal::locale()->formatNumber( records[j].toFloat() ) );
+ item->setText(j, TDEGlobal::locale()->formatNumber( records[j].toFloat() ) );
else if ( mColumnTypes[ j ] == "D" )
- item->setText(j, KGlobal::locale()->formatNumber( records[j].toDouble(), 0 ) );
+ item->setText(j, TDEGlobal::locale()->formatNumber( records[j].toDouble(), 0 ) );
else
item->setText(j, records[j]);
}
diff --git a/ksysguard/gui/SensorDisplayLib/ProcessList.cc b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
index 44ce491db..86b5b17ee 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessList.cc
+++ b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
@@ -64,8 +64,8 @@ int ProcessLVI::compare( TQListViewItem *item, int col, bool ascending ) const
int type = ((ProcessList*)listView())->columnType( col );
if ( type == ProcessList::Int ) {
- int prev = (int)KGlobal::locale()->readNumber( key( col, ascending ) );
- int next = (int)KGlobal::locale()->readNumber( item->key( col, ascending ) );
+ int prev = (int)TDEGlobal::locale()->readNumber( key( col, ascending ) );
+ int next = (int)TDEGlobal::locale()->readNumber( item->key( col, ascending ) );
if ( prev < next )
return -1;
else if ( prev == next )
@@ -75,8 +75,8 @@ int ProcessLVI::compare( TQListViewItem *item, int col, bool ascending ) const
}
if ( type == ProcessList::Float ) {
- double prev = KGlobal::locale()->readNumber( key( col, ascending ) );
- double next = KGlobal::locale()->readNumber( item->key( col, ascending ) );
+ double prev = TDEGlobal::locale()->readNumber( key( col, ascending ) );
+ double next = TDEGlobal::locale()->readNumber( item->key( col, ascending ) );
if ( prev < next )
return -1;
else
@@ -613,11 +613,11 @@ ProcessList::addProcess(KSGRD::SensorPSLine* p, ProcessLVI* pli)
TQPixmap pix;
if (!iconCache[name])
{
- pix = KGlobal::iconLoader()->loadIcon(name, KIcon::Small,
+ pix = TDEGlobal::iconLoader()->loadIcon(name, KIcon::Small,
KIcon::SizeSmall, KIcon::DefaultState,
0L, true);
if (pix.isNull() || !pix.mask())
- pix = KGlobal::iconLoader()->loadIcon("unknownapp", KIcon::User,
+ pix = TDEGlobal::iconLoader()->loadIcon("unknownapp", KIcon::User,
KIcon::SizeSmall);
if (pix.width() != 16 || pix.height() != 16)
@@ -659,9 +659,9 @@ ProcessList::addProcess(KSGRD::SensorPSLine* p, ProcessLVI* pli)
if (mColumnTypes[col] == "S" && columnDict[(*p)[col]])
pli->setText(col, *columnDict[(*p)[col]]);
else if ( mColumnTypes[col] == "f" )
- pli->setText( col, KGlobal::locale()->formatNumber( (*p)[col].toFloat() ) );
+ pli->setText( col, TDEGlobal::locale()->formatNumber( (*p)[col].toFloat() ) );
else if ( mColumnTypes[col] == "D" )
- pli->setText( col, KGlobal::locale()->formatNumber( (*p)[col].toInt(), 0 ) );
+ pli->setText( col, TDEGlobal::locale()->formatNumber( (*p)[col].toInt(), 0 ) );
else
pli->setText(col, (*p)[col]);
}
diff --git a/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc b/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
index 03ee4b991..593dcb00a 100644
--- a/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
+++ b/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
@@ -439,7 +439,7 @@ void SensorDisplay::setSensorOk( bool ok )
if ( mErrorIndicator )
return;
- TQPixmap errorIcon = KGlobal::iconLoader()->loadIcon( "connect_creating", KIcon::Desktop,
+ TQPixmap errorIcon = TDEGlobal::iconLoader()->loadIcon( "connect_creating", KIcon::Desktop,
KIcon::SizeSmall );
if ( !mPlotterWdg )
return;