summaryrefslogtreecommitdiffstats
path: root/knetwalk
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:16:20 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:16:20 -0600
commit64ced13f94a9695148d38a84ee27e421f91e503a (patch)
tree88745a8a2c82382d21a5c268a3170e68c00b3835 /knetwalk
parent41ef6ae3bd30baee1f8a40f418bc2d63a8ce5ce6 (diff)
downloadtdegames-64ced13f94a9695148d38a84ee27e421f91e503a.tar.gz
tdegames-64ced13f94a9695148d38a84ee27e421f91e503a.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'knetwalk')
-rw-r--r--knetwalk/src/cell.cpp12
-rw-r--r--knetwalk/src/mainwindow.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/knetwalk/src/cell.cpp b/knetwalk/src/cell.cpp
index e3ee7193..e507a79f 100644
--- a/knetwalk/src/cell.cpp
+++ b/knetwalk/src/cell.cpp
@@ -47,7 +47,7 @@ void Cell::initPixmaps()
for(it = names.constBegin(); it != names.constEnd(); ++it)
{
connectedpixmap[it.key()]=new TQPixmap(TDEGlobal::iconLoader()->loadIcon(
- locate("data","knetwalk/cable"+it.data()+".png"), KIcon::NoGroup, 32) );
+ locate("data","knetwalk/cable"+it.data()+".png"), TDEIcon::NoGroup, 32) );
TQImage image = connectedpixmap[it.key()]->convertToImage();
for(int y = 0; y < image.height(); y++)
@@ -152,9 +152,9 @@ void Cell::paintEvent(TQPaintEvent*)
{
changed = false;
if ( locked ) {
- pixmap = TDEGlobal::iconLoader()->loadIcon(locate("data", "knetwalk/background_locked.png"), KIcon::NoGroup, 32);
+ pixmap = TDEGlobal::iconLoader()->loadIcon(locate("data", "knetwalk/background_locked.png"), TDEIcon::NoGroup, 32);
} else {
- pixmap = TDEGlobal::iconLoader()->loadIcon(locate("data", "knetwalk/background.png"), KIcon::NoGroup, 32);
+ pixmap = TDEGlobal::iconLoader()->loadIcon(locate("data", "knetwalk/background.png"), TDEIcon::NoGroup, 32);
}
TQPainter paint;
@@ -185,14 +185,14 @@ void Cell::paintEvent(TQPaintEvent*)
if(root)
{
- pix=TDEGlobal::iconLoader()->loadIcon(locate("data", "knetwalk/server.png"), KIcon::NoGroup, 32);
+ pix=TDEGlobal::iconLoader()->loadIcon(locate("data", "knetwalk/server.png"), TDEIcon::NoGroup, 32);
}
else if(ddirs == U || ddirs == L || ddirs == D || ddirs == R)
{
if(connected)
- pix=TDEGlobal::iconLoader()->loadIcon(locate("data","knetwalk/computer2.png"),KIcon::NoGroup,32);
+ pix=TDEGlobal::iconLoader()->loadIcon(locate("data","knetwalk/computer2.png"),TDEIcon::NoGroup,32);
else
- pix=TDEGlobal::iconLoader()->loadIcon(locate("data","knetwalk/computer1.png"),KIcon::NoGroup,32);
+ pix=TDEGlobal::iconLoader()->loadIcon(locate("data","knetwalk/computer1.png"),TDEIcon::NoGroup,32);
}
paint.drawPixmap(0, 0, pix);
}
diff --git a/knetwalk/src/mainwindow.cpp b/knetwalk/src/mainwindow.cpp
index 43c50cb7..eb5828da 100644
--- a/knetwalk/src/mainwindow.cpp
+++ b/knetwalk/src/mainwindow.cpp
@@ -94,7 +94,7 @@ MainWindow::MainWindow(TQWidget *parent, const char* name, WFlags /*fl*/) :
" to turn it in a counter-clockwise direction."
"<p>Start the LAN with as few turns as possible!"));
- //const int cellsize = TDEGlobal::iconLoader()->loadIcon("knetwalk/background.png", KIcon::User, 32).width();
+ //const int cellsize = TDEGlobal::iconLoader()->loadIcon("knetwalk/background.png", TDEIcon::User, 32).width();
const int cellsize = 32;
const int gridsize = cellsize * MasterBoardSize + 2;