diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 14:11:34 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 14:11:34 +0300 |
commit | d991b7f387775dc1071fb0c0af78de1c613ca991 (patch) | |
tree | eb7c978130acb1b2c93eeea98be2f647372c6fac /src/komposetaskmanager.cpp | |
parent | 1bd3c5b42f1570b2100a4986f638f2723ee37ec4 (diff) | |
download | kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.tar.gz kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.zip |
Qt3->TQt conversion.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/komposetaskmanager.cpp')
-rw-r--r-- | src/komposetaskmanager.cpp | 30 |
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; |