summaryrefslogtreecommitdiffstats
path: root/kicker/taskmanager/taskmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kicker/taskmanager/taskmanager.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/taskmanager/taskmanager.cpp')
-rw-r--r--kicker/taskmanager/taskmanager.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kicker/taskmanager/taskmanager.cpp b/kicker/taskmanager/taskmanager.cpp
index 739c626b5..9aeb9415b 100644
--- a/kicker/taskmanager/taskmanager.cpp
+++ b/kicker/taskmanager/taskmanager.cpp
@@ -247,7 +247,7 @@ Task::Ptr TaskManager::findTask(int desktop, const TQPoint& p)
continue;
}
- if (t->geometry().contains(p))
+ if (t->tqgeometry().tqcontains(p))
{
int index = list.findIndex(t->window());
if (index > currentIndex)
@@ -295,7 +295,7 @@ void TaskManager::windowAdded(WId w )
WId transient_for = (WId) transient_for_tmp;
// check if it's transient for a skiptaskbar window
- if( _skiptaskbar_windows.contains( transient_for ))
+ if( _skiptaskbar_windows.tqcontains( transient_for ))
return;
// lets see if this is a transient for an existing task
@@ -831,7 +831,7 @@ void Task::updateDemandsAttentionState( WId w )
NETWinInfo i( qt_xdisplay(), w, qt_xrootwin(), NET::WMState );
if(i.state() & NET::DemandsAttention)
{
- if (!_transients_demanding_attention.contains(w))
+ if (!_transients_demanding_attention.tqcontains(w))
{
_transients_demanding_attention.append(w);
}
@@ -984,10 +984,10 @@ bool Task::idMatch( const TQString& id1, const TQString& id2 )
if ( id1.isEmpty() || id2.isEmpty() )
return false;
- if ( id1.contains( id2 ) > 0 )
+ if ( id1.tqcontains( id2 ) > 0 )
return true;
- if ( id2.contains( id1 ) > 0 )
+ if ( id2.tqcontains( id1 ) > 0 )
return true;
return false;
@@ -1009,7 +1009,7 @@ void Task::move()
KWin::deIconifyWindow(_win);
}
- TQRect geom = _info.geometry();
+ TQRect geom = _info.tqgeometry();
TQCursor::setPos(geom.center());
NETRootInfo ri(qt_xdisplay(), NET::WMMoveResize);
@@ -1032,7 +1032,7 @@ void Task::resize()
KWin::deIconifyWindow(_win);
}
- TQRect geom = _info.geometry();
+ TQRect geom = _info.tqgeometry();
TQCursor::setPos(geom.bottomRight());
NETRootInfo ri(qt_xdisplay(), NET::WMMoveResize);
@@ -1305,8 +1305,8 @@ void Task::updateThumbnail()
// by the thumbnail generation. This makes things much smoother
// on slower machines.
//
- TQWidget *rootWin = qApp->desktop();
- TQRect geom = _info.geometry();
+ TQWidget *rootWin = tqApp->desktop();
+ TQRect geom = _info.tqgeometry();
_grab = TQPixmap::grabWindow(rootWin->winId(),
geom.x(), geom.y(),
geom.width(), geom.height());
@@ -1329,7 +1329,7 @@ void Task::generateThumbnail()
width = width * _thumbSize;
height = height * _thumbSize;
- img = img.smoothScale( qRound(width), qRound(height) );
+ img = img.smoothScale( tqRound(width), tqRound(height) );
_thumb = img;
_grab.resize( 0, 0 ); // Makes grab a null image.
@@ -1356,7 +1356,7 @@ TQPixmap Task::thumbnail(int maxDimension)
Picture picture = XRenderCreatePicture(dpy, m_windowPixmap, format,
CPSubwindowMode, &picAttr);
- // Get shaped windows handled correctly.
+ // Get tqshaped windows handled correctly.
XserverRegion region = XFixesCreateRegionFromWindow(dpy, m_frameId,
WindowRegionBounding);
XFixesSetPictureClipRegion(dpy, picture, 0, 0, region);
@@ -1386,10 +1386,10 @@ TQPixmap Task::thumbnail(int maxDimension)
XRenderComposite(dpy,
hasAlpha ? PictOpOver : PictOpSrc,
picture, // src
- None, // mask
+ None, // tqmask
full.x11RenderHandle(), // dst
0, 0, // src offset
- 0, 0, // mask offset
+ 0, 0, // tqmask offset
0, 0, // dst offset
winAttr.width, winAttr.height);
@@ -1411,10 +1411,10 @@ TQPixmap Task::thumbnail(int maxDimension)
XRenderComposite(TQPaintDevice::x11AppDisplay(),
PictOpOver, // we're filtering, alpha values are probable
picture, // src
- None, // mask
+ None, // tqmask
thumbnail.x11RenderHandle(), // dst
0, 0, // src offset
- 0, 0, // mask offset
+ 0, 0, // tqmask offset
0, 0, // dst offset
thumbnailWidth, thumbnailHeight);
#endif
@@ -1499,7 +1499,7 @@ bool TaskDrag::canDecode(const TQMimeSource* e)
Task::List TaskDrag::decode( const TQMimeSource* e )
{
- TQByteArray data(e->encodedData("taskbar/task"));
+ TQByteArray data(e->tqencodedData("taskbar/task"));
Task::List tasks;
if (data.size())