summaryrefslogtreecommitdiffstats
path: root/tdeprint/tests/drawdemo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/tests/drawdemo.cpp')
-rw-r--r--tdeprint/tests/drawdemo.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tdeprint/tests/drawdemo.cpp b/tdeprint/tests/drawdemo.cpp
index e60aae845..8c44543d9 100644
--- a/tdeprint/tests/drawdemo.cpp
+++ b/tdeprint/tests/drawdemo.cpp
@@ -28,7 +28,7 @@ void drawColorWheel( TQPainter *p )
{
TQFont f( "times", 18, TQFont::Bold );
p->setFont( f );
- p->setPen( Qt::black );
+ p->setPen( TQt::black );
p->setWindow( 0, 0, 500, 500 ); // defines coordinate system
for ( int i=0; i<36; i++ ) { // draws 36 rotated rectangles
@@ -83,12 +83,12 @@ void drawFonts( TQPainter *p )
void drawShapes( TQPainter *p )
{
- TQBrush b1( Qt::blue );
- TQBrush b2( Qt::green, Qt::Dense6Pattern ); // green 12% fill
- TQBrush b3( Qt::NoBrush ); // void brush
- TQBrush b4( Qt::CrossPattern ); // black cross pattern
+ TQBrush b1( TQt::blue );
+ TQBrush b2( TQt::green, TQt::Dense6Pattern ); // green 12% fill
+ TQBrush b3( TQt::NoBrush ); // void brush
+ TQBrush b4( TQt::CrossPattern ); // black cross pattern
- p->setPen( Qt::red );
+ p->setPen( TQt::red );
p->setBrush( b1 );
p->drawRect( 10, 10, 200, 100 );
p->setBrush( b2 );
@@ -133,7 +133,7 @@ DrawView::DrawView()
// Create a button group to contain all buttons
bgroup = new TQButtonGroup( this );
bgroup->resize( 200, 200 );
- connect( bgroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(updateIt(int)) );
+ connect( bgroup, TQ_SIGNAL(clicked(int)), TQ_SLOT(updateIt(int)) );
// Calculate the size for the radio buttons
int maxwidth = 80;
@@ -164,7 +164,7 @@ DrawView::DrawView()
print = new TQPushButton( "Print...", bgroup );
print->resize( 80, 30 );
print->move( maxwidth/2 - print->width()/2, maxindex*30+20 );
- connect( print, TQT_SIGNAL(clicked()), TQT_SLOT(printIt()) );
+ connect( print, TQ_SIGNAL(clicked()), TQ_SLOT(printIt()) );
bgroup->resize( maxwidth, print->y()+print->height()+10 );