summaryrefslogtreecommitdiffstats
path: root/kwin/tools
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 /kwin/tools
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 'kwin/tools')
-rw-r--r--kwin/tools/decobenchmark/main.cpp4
-rw-r--r--kwin/tools/decobenchmark/preview.cpp16
-rw-r--r--kwin/tools/decobenchmark/preview.h2
-rw-r--r--kwin/tools/xreply/xreply.c4
4 files changed, 13 insertions, 13 deletions
diff --git a/kwin/tools/decobenchmark/main.cpp b/kwin/tools/decobenchmark/main.cpp
index d0d165005..ca3ce11d2 100644
--- a/kwin/tools/decobenchmark/main.cpp
+++ b/kwin/tools/decobenchmark/main.cpp
@@ -40,7 +40,7 @@
static KCmdLineOptions options[] =
{
{ "+decoration", "Decoration library to use, such as kwin3_plastik.", 0 },
- { "+tests", "Which test should be executed ('all', 'repaint', 'caption', 'resize', 'recreation')", 0 },
+ { "+tests", "Which test should be executed ('all', 'tqrepaint', 'caption', 'resize', 'recreation')", 0 },
{ "+repetitions", "Number of test repetitions.", 0 },
{ 0, 0, 0 }
};
@@ -117,7 +117,7 @@ int main(int argc, char** argv)
Tests test;
if (t == "all")
test = AllTests;
- else if (t == "repaint")
+ else if (t == "tqrepaint")
test = RepaintTest;
else if (t == "caption")
test = CaptionTest;
diff --git a/kwin/tools/decobenchmark/preview.cpp b/kwin/tools/decobenchmark/preview.cpp
index 3cbcdcb5f..69c85c140 100644
--- a/kwin/tools/decobenchmark/preview.cpp
+++ b/kwin/tools/decobenchmark/preview.cpp
@@ -61,12 +61,12 @@ KDecorationPreview::~KDecorationPreview()
void KDecorationPreview::performRepaintTest(int n)
{
- kdDebug() << "start " << n << " repaints..." << endl;
+ kdDebug() << "start " << n << " tqrepaints..." << endl;
bridge->setCaption("Deco Benchmark");
deco->captionChange();
positionPreviews(0);
for (int i = 0; i < n; ++i) {
- deco->widget()->repaint();
+ deco->widget()->tqrepaint();
kapp->processEvents();
}
}
@@ -79,7 +79,7 @@ void KDecorationPreview::performCaptionTest(int n)
for (int i = 0; i < n; ++i) {
bridge->setCaption(caption.arg(i) );
deco->captionChange();
- deco->widget()->repaint();
+ deco->widget()->tqrepaint();
kapp->processEvents();
}
}
@@ -127,10 +127,10 @@ void KDecorationPreview::positionPreviews(int shrink)
if ( !deco )
return;
- TQSize size = TQSize(width()-2*10-shrink, height()-2*10-shrink)/*.expandedTo(deco->minimumSize()*/;
+ TQSize size = TQSize(width()-2*10-shrink, height()-2*10-shrink)/*.expandedTo(deco->tqminimumSize()*/;
- TQRect geometry(TQPoint(10, 10), size);
- deco->widget()->setGeometry(geometry);
+ TQRect tqgeometry(TQPoint(10, 10), size);
+ deco->widget()->setGeometry(tqgeometry);
}
void KDecorationPreview::setPreviewMask( const TQRegion& reg, int mode )
@@ -165,7 +165,7 @@ void KDecorationPreview::setPreviewMask( const TQRegion& reg, int mode )
TQRect KDecorationPreview::windowGeometry( bool active ) const
{
TQWidget *widget = deco->widget();
- return widget->geometry();
+ return widget->tqgeometry();
}
TQRegion KDecorationPreview::unobscuredRegion( bool active, const TQRegion& r ) const
@@ -309,7 +309,7 @@ bool KDecorationPreviewBridge::isPreview() const
return false;
}
-TQRect KDecorationPreviewBridge::geometry() const
+TQRect KDecorationPreviewBridge::tqgeometry() const
{
return preview->windowGeometry( active );
}
diff --git a/kwin/tools/decobenchmark/preview.h b/kwin/tools/decobenchmark/preview.h
index 9f2445036..aea4fe7ea 100644
--- a/kwin/tools/decobenchmark/preview.h
+++ b/kwin/tools/decobenchmark/preview.h
@@ -85,7 +85,7 @@ class KDecorationPreviewBridge
virtual void performWindowOperation( WindowOperation );
virtual void setMask( const TQRegion&, int );
virtual bool isPreview() const;
- virtual TQRect geometry() const;
+ virtual TQRect tqgeometry() const;
virtual TQRect iconGeometry() const;
virtual TQRegion unobscuredRegion( const TQRegion& r ) const;
virtual TQWidget* workspaceWidget() const;
diff --git a/kwin/tools/xreply/xreply.c b/kwin/tools/xreply/xreply.c
index ecdf6ebc3..648961b80 100644
--- a/kwin/tools/xreply/xreply.c
+++ b/kwin/tools/xreply/xreply.c
@@ -33,7 +33,7 @@ __attribute((weak)) int ___xreply_reply_enabled = 1;
extern long ___xreply_reply_count;
extern int ___xreply_reply_enabled;
-typedef Status (*xreply_ptr_t)(Display*,xReply*,int,Bool);
+typedef tqStatus (*xreply_ptr_t)(Display*,xReply*,int,Bool);
static xreply_ptr_t xreply_ptr = NULL;
static int xreply_backtrace_set = 0;
@@ -163,7 +163,7 @@ static void xreply_backtrace()
free (strings);
}
-Status
+tqStatus
_XReply (dpy, rep, extra, discard)
register Display *dpy;
register xReply *rep;