From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- superkaramba/src/systemtray.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'superkaramba/src/systemtray.cpp') diff --git a/superkaramba/src/systemtray.cpp b/superkaramba/src/systemtray.cpp index 312fe59..ed85ab8 100644 --- a/superkaramba/src/systemtray.cpp +++ b/superkaramba/src/systemtray.cpp @@ -19,7 +19,7 @@ #include "systemtray.h" -#include +#include #include #include #include @@ -27,16 +27,16 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include -Systemtray::Systemtray(QWidget* parent) - : QWidget(parent,0,0) +Systemtray::Systemtray(TQWidget* parent) + : TQWidget(parent,0,0) { setBackgroundOrigin(ParentOrigin); setBackgroundMode(FixedPixmap); @@ -54,20 +54,20 @@ int Systemtray::getTraySize() { return (int) kwin_module->systemTrayWindows().size(); } -void Systemtray::updateBackgroundPixmap ( const QPixmap & pixmap) { +void Systemtray::updateBackgroundPixmap ( const TQPixmap & pixmap) { QXEmbed *emb; setPaletteBackgroundPixmap (pixmap); for (emb = m_Wins.first(); emb != 0L; emb = m_Wins.next()) { //Stupid stupid stupid work around for annoying bug //QXEmbed ignores setBackgroundOrigin(AncestorOrigin).... - QPixmap bug = QPixmap(emb->size()); + 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); emb->setPaletteBackgroundPixmap (bug); } - QPoint topPoint = mapToGlobal(QPoint(0,0)); + TQPoint topPoint = mapToGlobal(TQPoint(0,0)); Window hack = XCreateSimpleWindow(qt_xdisplay(), winId(), 0,0, width(), height(), 0, 0, 0); XRaiseWindow(qt_xdisplay(), hack); XMapWindow(qt_xdisplay(), hack); @@ -84,8 +84,8 @@ void Systemtray::initSystray( void ) kwin_module = new KWinModule(); systemTrayWindows = kwin_module->systemTrayWindows(); - QValueList::ConstIterator end(systemTrayWindows.end()); - for (QValueList::ConstIterator it = systemTrayWindows.begin(); it!=end; ++it) + TQValueList::ConstIterator end(systemTrayWindows.end()); + for (TQValueList::ConstIterator it = systemTrayWindows.begin(); it!=end; ++it) { no_of_systray_windows++; QXEmbed *emb; @@ -95,7 +95,7 @@ void Systemtray::initSystray( void ) emb->setAutoDelete(false); - connect(emb, SIGNAL(embeddedWindowDestroyed()), SLOT(updateTrayWindows())); + connect(emb, TQT_SIGNAL(embeddedWindowDestroyed()), TQT_SLOT(updateTrayWindows())); m_Wins.append(emb); @@ -107,12 +107,12 @@ void Systemtray::initSystray( void ) updateTrayWindows(); - connect(kwin_module, SIGNAL(systemTrayWindowAdded(WId)), SLOT(systemTrayWindowAdded(WId))); - connect(kwin_module, SIGNAL(systemTrayWindowRemoved(WId)), SLOT(systemTrayWindowRemoved(WId))); + connect(kwin_module, TQT_SIGNAL(systemTrayWindowAdded(WId)), TQT_SLOT(systemTrayWindowAdded(WId))); + connect(kwin_module, TQT_SIGNAL(systemTrayWindowRemoved(WId)), TQT_SLOT(systemTrayWindowRemoved(WId))); - QCString screenstr; + TQCString screenstr; screenstr.setNum(qt_xscreen()); - QCString trayatom = "_NET_SYSTEM_TRAY_S" + screenstr; + TQCString trayatom = "_NET_SYSTEM_TRAY_S" + screenstr; net_system_tray_selection = XInternAtom( display, trayatom, false ); net_system_tray_opcode = XInternAtom( display, "_NET_SYSTEM_TRAY_OPCODE", false ); @@ -206,7 +206,7 @@ void Systemtray::systemTrayWindowAdded( WId w ) emb->setAutoDelete(false); //emb->setBackgroundMode(X11ParentRelative); emb->setBackgroundMode(FixedPixmap); - connect(emb, SIGNAL(embeddedWindowDestroyed()), SLOT(updateTrayWindows())); + connect(emb, TQT_SIGNAL(embeddedWindowDestroyed()), TQT_SLOT(updateTrayWindows())); m_Wins.append(emb); emb->embed(w); -- cgit v1.2.1