diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
commit | 99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch) | |
tree | eff34cf0762227f6baf2a93e8fef48d4bed2651c /umbrello/umbrello/activitywidget.cpp | |
parent | 1c104292188541106338d4940b0f04beeb4301a0 (diff) | |
download | tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip |
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/activitywidget.cpp')
-rw-r--r-- | umbrello/umbrello/activitywidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/umbrello/umbrello/activitywidget.cpp b/umbrello/umbrello/activitywidget.cpp index c0f0c836..3f9355f7 100644 --- a/umbrello/umbrello/activitywidget.cpp +++ b/umbrello/umbrello/activitywidget.cpp @@ -54,10 +54,10 @@ void ActivityWidget::draw(TQPainter & p, int offsetX, int offsetY) { //int middleX = w / 2; int textStartY = (h / 2) - (fontHeight / 2); p.drawRoundRect(offsetX, offsetY, w, h, (h * 60) / w, 60); - p.setPen(Qt::black); + p.setPen(TQt::black); p.setFont( UMLWidget::getFont() ); p.drawText(offsetX + ACTIVITY_MARGIN, offsetY + textStartY, - w - ACTIVITY_MARGIN * 2, fontHeight, Qt::AlignCenter, getName()); + w - ACTIVITY_MARGIN * 2, fontHeight, TQt::AlignCenter, getName()); } UMLWidget::setPen(p); break; @@ -70,7 +70,7 @@ void ActivityWidget::draw(TQPainter & p, int offsetX, int offsetY) { p.setPen( TQPen(m_LineColour, 1) ); p.setBrush( WidgetBase::getLineColor() ); p.drawEllipse( offsetX, offsetY, w, h ); - p.setBrush( Qt::white ); + p.setBrush( TQt::white ); p.drawEllipse( offsetX + 1, offsetY + 1, w - 2, h - 2 ); p.setBrush( WidgetBase::getLineColor() ); p.drawEllipse( offsetX + 3, offsetY + 3, w - 6, h - 6 ); |