diff options
Diffstat (limited to 'lskat/lskat/lskatview.cpp')
-rw-r--r-- | lskat/lskat/lskatview.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lskat/lskat/lskatview.cpp b/lskat/lskat/lskatview.cpp index 4ad9bf92..72b5ffd1 100644 --- a/lskat/lskat/lskatview.cpp +++ b/lskat/lskat/lskatview.cpp @@ -403,7 +403,7 @@ void LSkatView::drawFinal(TQPainter *p) TQRect brect1_3,brect2_3,brect3_3,brect4_3; TQRect brect1_4,brect2_4,brect3_4,brect4_4; - // Calculate tqgeometry + // Calculate geometry line1=i18n("Game over"); rect=p->window(); //rect1.moveBy(0,FINAL_Y0-24); @@ -429,11 +429,11 @@ void LSkatView::drawFinal(TQPainter *p) } else if (sc0>sc1) { - line2=i18n("Player 1 - %1 won ").tqarg(getDocument()->GetName(0)); + line2=i18n("Player 1 - %1 won ").arg(getDocument()->GetName(0)); } else { - line2=i18n("Player 2 - %1 won ").tqarg(getDocument()->GetName(1)); + line2=i18n("Player 2 - %1 won ").arg(getDocument()->GetName(1)); } int hp=getDocument()->mPixTrump[trump].height()+5; rect=TQRect(0,hp>sumrect.height()?hp:sumrect.height(),p->window().width(),p->window().height()); @@ -469,11 +469,11 @@ void LSkatView::drawFinal(TQPainter *p) rect=brect3_3|brect3_4; ts[2]=ts[1]+rect.width()+30; - col4_3=i18n("%1 points").tqarg(pt0); + col4_3=i18n("%1 points").arg(pt0); rect=TQRect(0,0,p->window().width(),p->window().height()); brect4_3=p->boundingRect(rect,TQt::AlignLeft|TQt::SingleLine|TQt::AlignTop,col4_3); - col4_4=i18n("%1 points").tqarg(pt1); + col4_4=i18n("%1 points").arg(pt1); rect=TQRect(0,0,p->window().width(),p->window().height()); brect4_4=p->boundingRect(rect,TQt::AlignLeft|TQt::SingleLine|TQt::AlignTop,col4_4); @@ -492,7 +492,7 @@ void LSkatView::drawFinal(TQPainter *p) p->setFont(font14); if (sc0>=120) { - line5=i18n("%1 won to nil. Congratulations!").tqarg(getDocument()->GetName(0)); + line5=i18n("%1 won to nil. Congratulations!").arg(getDocument()->GetName(0)); rect=TQRect(0,sumrect.height()+10,p->window().width(),p->window().height()); brect5=p->boundingRect(rect,TQt::AlignHCenter|TQt::SingleLine|TQt::AlignTop,line5); sumrect|=brect5; @@ -500,16 +500,16 @@ void LSkatView::drawFinal(TQPainter *p) else if (sc0>=90) { if (sc0==90) - line5=i18n("%1 won with 90 points. Super!").tqarg(getDocument()->GetName(0)); + line5=i18n("%1 won with 90 points. Super!").arg(getDocument()->GetName(0)); else - line5=i18n("%1 won over 90 points. Super!").tqarg(getDocument()->GetName(0)); + line5=i18n("%1 won over 90 points. Super!").arg(getDocument()->GetName(0)); rect=TQRect(0,sumrect.height()+10,p->window().width(),p->window().height()); brect5=p->boundingRect(rect,TQt::AlignHCenter|TQt::SingleLine|TQt::AlignTop,line5); sumrect|=brect5; } if (sc1>=120) { - line5=i18n("%1 won to nil. Congratulations!").tqarg(getDocument()->GetName(1)); + line5=i18n("%1 won to nil. Congratulations!").arg(getDocument()->GetName(1)); rect=TQRect(0,sumrect.height()+10,p->window().width(),p->window().height()); brect5=p->boundingRect(rect,TQt::AlignHCenter|TQt::SingleLine|TQt::AlignTop,line5); sumrect|=brect5; @@ -517,9 +517,9 @@ void LSkatView::drawFinal(TQPainter *p) else if (sc1>=90) { if (sc1==90) - line5=i18n("%1 won with 90 points. Super!").tqarg(getDocument()->GetName(1)); + line5=i18n("%1 won with 90 points. Super!").arg(getDocument()->GetName(1)); else - line5=i18n("%1 won over 90 points. Super!").tqarg(getDocument()->GetName(1)); + line5=i18n("%1 won over 90 points. Super!").arg(getDocument()->GetName(1)); rect=TQRect(0,sumrect.height()+10,p->window().width(),p->window().height()); brect5=p->boundingRect(rect,TQt::AlignHCenter|TQt::SingleLine|TQt::AlignTop,line5); sumrect|=brect5; @@ -760,7 +760,7 @@ void LSkatView::paintEvent( TQPaintEvent * e) TQPixmap pm(this->rect().size()); TQPainter p; TQBrush brush; - p.tqbegin(TQT_TQPAINTDEVICE(&pm),this); + p.begin(TQT_TQPAINTDEVICE(&pm),this); brush.setPixmap( getDocument()->mPixBackground ); p.fillRect(0,0,this->rect().width(),this->rect().height(),brush); drawIntro(&p); @@ -890,7 +890,7 @@ void LSkatView::introTimerReady() } else if (introcnt<NO_OF_CARDS) { - tqrepaint(false); + repaint(false); } } |