summaryrefslogtreecommitdiffstats
path: root/kwin/clients/test
diff options
context:
space:
mode:
Diffstat (limited to 'kwin/clients/test')
-rw-r--r--kwin/clients/test/test.cpp24
-rw-r--r--kwin/clients/test/test.h2
2 files changed, 13 insertions, 13 deletions
diff --git a/kwin/clients/test/test.cpp b/kwin/clients/test/test.cpp
index a04437067..02fd5b1d3 100644
--- a/kwin/clients/test/test.cpp
+++ b/kwin/clients/test/test.cpp
@@ -22,7 +22,7 @@ void Decoration::init()
{
button = new TQPushButton( widget());
button->show();
- button->setCursor( arrowCursor );
+ button->setCursor( tqarrowCursor );
button->move( 0, 0 );
connect( button, TQT_SIGNAL( clicked()), TQT_SLOT( closeWindow()));
TQToolTip::add( button, "Zelva Mana" );
@@ -93,20 +93,20 @@ void Decoration::resize( const TQSize& s )
widget()->resize( s );
}
-TQSize Decoration::minimumSize() const
+TQSize Decoration::tqminimumSize() const
{
return TQSize( 100, 50 );
}
bool Decoration::eventFilter( TQObject* o, TQEvent* e )
{
- if( o == widget())
+ if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(widget()))
{
switch( e->type())
{
case TQEvent::MouseButtonPress:
{ // FRAME
- processMousePressEvent( static_cast< TQMouseEvent* >( e ));
+ processMousePressEvent( TQT_TQMOUSEEVENT( e ));
return true;
}
case TQEvent::Show:
@@ -144,7 +144,7 @@ bool Decoration::animateMinimize(bool iconify)
// Go away quick.
helperShowHide( false );
- qApp->syncX();
+ tqApp->syncX();
TQRect r = iconGeometry();
@@ -179,7 +179,7 @@ bool Decoration::animateMinimize(bool iconify)
double delta = finalAngle / steps;
TQPainter p( workspaceWidget());
- p.setRasterOp(Qt::NotROP);
+ p.setRasterOp(TQt::NotROP);
for (double angle = 0; ; angle += delta) {
@@ -213,7 +213,7 @@ bool Decoration::animateMinimize(bool iconify)
ungrabXServer();
-// FRAME qApp->processEvents(); // FRAME ???
+// FRAME tqApp->processEvents(); // FRAME ???
cx += xstep;
cy += ystep;
@@ -236,7 +236,7 @@ bool Decoration::animateMinimize(bool iconify)
// Go away quick.
helperShowHide( false );
- qApp->syncX();
+ tqApp->syncX();
int stepCount = 12;
@@ -246,7 +246,7 @@ bool Decoration::animateMinimize(bool iconify)
int dy = r.height() / (stepCount * 2);
TQPainter p( workspaceWidget());
- p.setRasterOp(Qt::NotROP);
+ p.setRasterOp(TQt::NotROP);
for (int step = 0; step < stepCount; step++) {
@@ -263,7 +263,7 @@ bool Decoration::animateMinimize(bool iconify)
ungrabXServer();
-// FRAME qApp->processEvents();
+// FRAME tqApp->processEvents();
}
}
break;
@@ -280,7 +280,7 @@ bool Decoration::animateMinimize(bool iconify)
TQPainter p( workspaceWidget());
- p.setRasterOp(Qt::NotROP);
+ p.setRasterOp(TQt::NotROP);
#if 0
if (iconify)
@@ -298,7 +298,7 @@ bool Decoration::animateMinimize(bool iconify)
p.flush();
- qApp->syncX();
+ tqApp->syncX();
usleep(30000);
diff --git a/kwin/clients/test/test.h b/kwin/clients/test/test.h
index bfe36fa7c..e1d3d51a6 100644
--- a/kwin/clients/test/test.h
+++ b/kwin/clients/test/test.h
@@ -22,7 +22,7 @@ class Decoration
virtual MousePosition mousePosition( const TQPoint& p ) const;
virtual void borders( int& left, int& right, int& top, int& bottom ) const;
virtual void resize( const TQSize& s );
- virtual TQSize minimumSize() const;
+ virtual TQSize tqminimumSize() const;
virtual void activeChange() {};
virtual void captionChange() {};
virtual void maximizeChange() {};