summaryrefslogtreecommitdiffstats
path: root/src/komposetaskmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/komposetaskmanager.cpp')
-rw-r--r--src/komposetaskmanager.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/komposetaskmanager.cpp b/src/komposetaskmanager.cpp
index d33e1ae..93e79aa 100644
--- a/src/komposetaskmanager.cpp
+++ b/src/komposetaskmanager.cpp
@@ -27,10 +27,10 @@
#include "komposetask.h"
#include "komposeviewmanager.h"
-#include <qtimer.h>
-#include <qimage.h>
-#include <qpixmap.h>
-#include <qwidget.h>
+#include <tqtimer.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
+#include <tqwidget.h>
#include <kapplication.h>
#include <kwinmodule.h>
@@ -66,7 +66,7 @@ KomposeTaskManager* KomposeTaskManager::instance()
KomposeTaskManager::KomposeTaskManager()
- : QObject()
+ : TQObject()
{
taskManagerInstance = this;
kwin_module = new KWinModule();
@@ -84,8 +84,8 @@ KomposeTaskManager::KomposeTaskManager()
connect( KomposeSettings::instance(), SIGNAL(settingsChanged()), this, SLOT(callCompositeRedirect()) );
// register existing windows
- const QValueList<WId> windows = kwin_module->windows();
- for (QValueList<WId>::ConstIterator it = windows.begin(); it != windows.end(); ++it )
+ const TQValueList<WId> windows = kwin_module->windows();
+ for (TQValueList<WId>::ConstIterator it = windows.begin(); it != windows.end(); ++it )
slotWindowAdded(*it);
connect( kwin_module, SIGNAL(activeWindowChanged(WId)), this, SLOT(slotTaskActivated(WId)) );
@@ -105,7 +105,7 @@ void KomposeTaskManager::callCompositeRedirect()
#ifdef COMPOSITE
if ( KomposeGlobal::instance()->hasXcomposite() )
{
- Display *dpy = QPaintDevice::x11AppDisplay();
+ Display *dpy = TQPaintDevice::x11AppDisplay();
if ( KomposeSettings::instance()->getUseComposite() )
{
// Redirect
@@ -148,7 +148,7 @@ void KomposeTaskManager::slotWindowChanged( WId w, unsigned int dirty)
{
if( dirty & NET::WMState )
{
- NETWinInfo info ( qt_xdisplay(), w, qt_xrootwin(), NET::WMState );
+ NETWinInfo info ( tqt_xdisplay(), w, tqt_xrootwin(), NET::WMState );
if ( (info.state() & NET::SkipTaskbar) != 0 )
{
slotWindowRemoved( w );
@@ -194,7 +194,7 @@ void KomposeTaskManager::slotWindowRemoved(WId w )
void KomposeTaskManager::slotWindowAdded(WId w )
{
// ignore myself
- if ( QWidget::find(w) != 0 )
+ if ( TQWidget::find(w) != 0 )
return;
// if ( KomposeViewManager::instance()->hasActiveView() && w == KomposeViewManager::instance()->getViewWidget()->winId() )
// {
@@ -234,7 +234,7 @@ void KomposeTaskManager::slotUpdateScreenshots( bool switchDesktops )
{
kdDebug() << "KomposeTaskManager::slotUpdateScreenshots()" << endl;
- QPtrListIterator<KomposeTask> it( tasklist );
+ TQPtrListIterator<KomposeTask> it( tasklist );
KomposeTask *task;
// Iterate through tasks sorted by desktops (this minimizes desktop switching if necessary)
@@ -270,7 +270,7 @@ void KomposeTaskManager::simulatePasvScreenshotEvent()
void KomposeTaskManager::slotTaskActivated(WId winId)
{
kdDebug() << "KomposeTaskManager::slotTaskActivated ( " << winId << " )" << endl;
- QPtrListIterator<KomposeTask> it( tasklist );
+ TQPtrListIterator<KomposeTask> it( tasklist );
KomposeTask *task;
while ( (task = it.current()) != 0 )
{
@@ -293,7 +293,7 @@ bool KomposeTaskManager::isOnTop(const KomposeTask* task)
{
if(!task) return false;
- for (QValueList<WId>::ConstIterator it = kwin_module->stackingOrder().fromLast();
+ for (TQValueList<WId>::ConstIterator it = kwin_module->stackingOrder().fromLast();
it != kwin_module->stackingOrder().end(); --it )
{
for (KomposeTask* t = tasklist.first(); t != 0; t = tasklist.next() )
@@ -311,7 +311,7 @@ bool KomposeTaskManager::isOnTop(const KomposeTask* task)
return false;
}
-QString KomposeTaskManager::getDesktopName(int desk) const
+TQString KomposeTaskManager::getDesktopName(int desk) const
{
return kwin_module->desktopName(desk);
}
@@ -346,7 +346,7 @@ bool KomposeTaskManager::processX11Event( XEvent *event )
// e->damage is the damage handle returned by XDamageCreate()
// Subtract all the damage, repairing the window.
- XDamageSubtract( QPaintDevice::x11AppDisplay(), e->damage, None, None );
+ XDamageSubtract( TQPaintDevice::x11AppDisplay(), e->damage, None, None );
if ( !KomposeViewManager::instance()->hasActiveView() )
return true;