summaryrefslogtreecommitdiffstats
path: root/src/komposetask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/komposetask.cpp')
-rw-r--r--src/komposetask.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/komposetask.cpp b/src/komposetask.cpp
index 54b3fd1..0d34c13 100644
--- a/src/komposetask.cpp
+++ b/src/komposetask.cpp
@@ -23,11 +23,11 @@
#include "komposesettings.h"
#include "komposeglobal.h"
-#include <qobject.h>
-#include <qimage.h>
-#include <qapplication.h>
-#include <qtimer.h>
-#include <qpixmap.h>
+#include <tqobject.h>
+#include <tqimage.h>
+#include <tqapplication.h>
+#include <tqtimer.h>
+#include <tqpixmap.h>
#include <kpixmapio.h>
#include <kwinmodule.h>
@@ -41,8 +41,8 @@
#include "komposetaskvisualizer.h"
#include <X11/Xlib.h>
-KomposeTask::KomposeTask(WId win, KWinModule *kwinmod, QObject *parent, const char *name)
- : QObject(parent, name),
+KomposeTask::KomposeTask(WId win, KWinModule *kwinmod, TQObject *parent, const char *name)
+ : TQObject(parent, name),
kwinmodule(kwinmod),
windowID(win),
blockDamageEvents(false)
@@ -72,7 +72,7 @@ void KomposeTask::findWmFrame()
target_win = windowID;
for (;;)
{
- status = XQueryTree(QPaintDevice::x11AppDisplay(), target_win, &root, &parent, &children, &nchildren);
+ status = XQueryTree(TQPaintDevice::x11AppDisplay(), target_win, &root, &parent, &children, &nchildren);
if (!status)
break;
if (children)
@@ -150,7 +150,7 @@ bool KomposeTask::isOnAllDesktops() const
bool KomposeTask::isModified() const
{
- static QString modStr = QString::fromUtf8("[") + i18n("modified") + QString::fromUtf8("]");
+ static TQString modStr = TQString::fromUtf8("[") + i18n("modified") + TQString::fromUtf8("]");
int modStrPos = windowInfo.visibleName().find(modStr);
return ( modStrPos != -1 );
@@ -159,7 +159,7 @@ bool KomposeTask::isModified() const
void KomposeTask::maximize()
{
- NETWinInfo ni( qt_xdisplay(), windowID, qt_xrootwin(), NET::WMState);
+ NETWinInfo ni( tqt_xdisplay(), windowID, tqt_xrootwin(), NET::WMState);
ni.setState( NET::Max, NET::Max );
if (windowInfo.mappingState() == NET::Iconic)
@@ -169,7 +169,7 @@ void KomposeTask::maximize()
void KomposeTask::restore()
{
KWin::deIconifyWindow( windowID, false );
- // NETWinInfo ni( qt_xdisplay(), windowID, qt_xrootwin(), NET::WMState);
+ // NETWinInfo ni( tqt_xdisplay(), windowID, tqt_xrootwin(), NET::WMState);
// ni.setState( 0, NET::Max );
//
// if (windowInfo.mappingState == NET::Iconic)
@@ -178,26 +178,26 @@ void KomposeTask::restore()
void KomposeTask::iconify()
{
- //XIconifyWindow( qt_xdisplay(), windowID, qt_xscreen() );
+ //XIconifyWindow( tqt_xdisplay(), windowID, tqt_xscreen() );
KWin::iconifyWindow( windowID, false );
}
void KomposeTask::close()
{
- NETRootInfo ri( qt_xdisplay(), NET::CloseWindow );
+ NETRootInfo ri( tqt_xdisplay(), NET::CloseWindow );
ri.closeWindowRequest( windowID );
}
void KomposeTask::raise()
{
// kdDebug(1210) << "Task::raise(): " << name() << endl;
- XRaiseWindow( qt_xdisplay(), windowID );
+ XRaiseWindow( tqt_xdisplay(), windowID );
}
void KomposeTask::lower()
{
// kdDebug(1210) << "Task::lower(): " << name() << endl;
- XLowerWindow( qt_xdisplay(), windowID );
+ XLowerWindow( tqt_xdisplay(), windowID );
}
@@ -232,7 +232,7 @@ void KomposeTask::minimizeOrRestore()
void KomposeTask::toDesktop(int desk)
{
- NETWinInfo ni(qt_xdisplay(), windowID, qt_xrootwin(), NET::WMDesktop);
+ NETWinInfo ni(tqt_xdisplay(), windowID, tqt_xrootwin(), NET::WMDesktop);
if (desk == 0)
{
ni.setDesktop(NETWinInfo::OnAllDesktops);
@@ -249,7 +249,7 @@ void KomposeTask::toCurrentDesktop()
void KomposeTask::setAlwaysOnTop(bool stay)
{
- NETWinInfo ni( qt_xdisplay(), windowID, qt_xrootwin(), NET::WMState);
+ NETWinInfo ni( tqt_xdisplay(), windowID, tqt_xrootwin(), NET::WMState);
if(stay)
ni.setState( NET::StaysOnTop, NET::StaysOnTop );
else
@@ -263,7 +263,7 @@ void KomposeTask::toggleAlwaysOnTop()
void KomposeTask::setShaded(bool shade)
{
- NETWinInfo ni( qt_xdisplay(), windowID, qt_xrootwin(), NET::WMState);
+ NETWinInfo ni( tqt_xdisplay(), windowID, tqt_xrootwin(), NET::WMState);
if(shade)
ni.setState( NET::Shaded, NET::Shaded );
else
@@ -317,7 +317,7 @@ void KomposeTask::slotX11DamageNotify()
blockDamageEvents = true;
emit x11DamageNotify();
- QTimer::singleShot( 1000, this, SLOT( unBlockDamageEvents() ) );
+ TQTimer::singleShot( 1000, this, SLOT( unBlockDamageEvents() ) );
}
int KomposeTask::getHeightForWidth ( int w ) const
@@ -335,7 +335,7 @@ double KomposeTask::getAspectRatio()
return (double)(getGeometry().width()) / (double)(getGeometry().height());
}
-QPixmap KomposeTask::getIcon( int size )
+TQPixmap KomposeTask::getIcon( int size )
{
// Cache the icons???
// if ( pm_icon.isNull() || pm_icon.width() != size )