summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/systemtray.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /superkaramba/src/systemtray.cpp
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/systemtray.cpp')
-rw-r--r--superkaramba/src/systemtray.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/superkaramba/src/systemtray.cpp b/superkaramba/src/systemtray.cpp
index ed85ab8..17c38b6 100644
--- a/superkaramba/src/systemtray.cpp
+++ b/superkaramba/src/systemtray.cpp
@@ -35,8 +35,8 @@
#include <X11/Xlib.h>
-Systemtray::Systemtray(TQWidget* parent)
- : TQWidget(parent,0,0)
+Systemtray::Systemtray(TQWidget* tqparent)
+ : TQWidget(tqparent,0,0)
{
setBackgroundOrigin(ParentOrigin);
setBackgroundMode(FixedPixmap);
@@ -62,7 +62,7 @@ void Systemtray::updateBackgroundPixmap ( const TQPixmap & pixmap) {
//Stupid stupid stupid work around for annoying bug
//QXEmbed ignores setBackgroundOrigin(AncestorOrigin)....
TQPixmap bug = TQPixmap(emb->size());
- bitBlt(&bug, 0, 0, &pixmap, emb->parentWidget()->x()+emb->x(), emb->parentWidget()->y()+emb->y(), emb->width(), emb->height(),Qt::CopyROP, false);
+ bitBlt(TQT_TQPAINTDEVICE(&bug), 0, 0, TQT_TQPAINTDEVICE(const_cast<TQPixmap*>(&pixmap)), emb->tqparentWidget()->x()+emb->x(), emb->tqparentWidget()->y()+emb->y(), emb->width(), emb->height(),TQt::CopyROP, false);
emb->setPaletteBackgroundPixmap (bug);
}
@@ -153,14 +153,14 @@ void Systemtray::updateTrayWindows( void )
while ((emb = m_Wins.current()) != 0L)
{
WId wid = emb->embeddedWinId();
- if ((wid == 0) || !kwin_module->systemTrayWindows().contains(wid) )
+ if ((wid == 0) || !kwin_module->systemTrayWindows().tqcontains(wid) )
m_Wins.remove(emb);
else
m_Wins.next();
}
- layoutSystray();
+ tqlayoutSystray();
}
-void Systemtray::layoutSystray()
+void Systemtray::tqlayoutSystray()
{
int i = 0, a = 0;
@@ -190,7 +190,7 @@ void Systemtray::layoutSystray()
}
count++;
- emb->repaint();
+ emb->tqrepaint();
}
}
@@ -213,7 +213,7 @@ void Systemtray::systemTrayWindowAdded( WId w )
emb->resize(24, 24);
emb->show();
- layoutSystray();
+ tqlayoutSystray();
}
void Systemtray::systemTrayWindowRemoved(WId)