summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/actorwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/actorwidget.cpp')
-rw-r--r--umbrello/umbrello/actorwidget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/umbrello/umbrello/actorwidget.cpp b/umbrello/umbrello/actorwidget.cpp
index 0001e146..38ddb4f5 100644
--- a/umbrello/umbrello/actorwidget.cpp
+++ b/umbrello/umbrello/actorwidget.cpp
@@ -13,7 +13,7 @@
#include "actorwidget.h"
// system includes
-#include <qpainter.h>
+#include <tqpainter.h>
// local includes
#include "actor.h"
@@ -26,14 +26,14 @@ ActorWidget::ActorWidget(UMLView * view, UMLActor *a) : UMLWidget(view, a) {
ActorWidget::~ActorWidget() {}
-void ActorWidget::draw(QPainter & p, int offsetX, int offsetY) {
+void ActorWidget::draw(TQPainter & p, int offsetX, int offsetY) {
UMLWidget::setPen(p);
if( UMLWidget::getUseFillColour() )
p.setBrush( UMLWidget::getFillColour() );
const int w = width();
const int h = height();
p.setFont( UMLWidget::getFont() );
- const QFontMetrics &fm = getFontMetrics(FT_NORMAL);
+ const TQFontMetrics &fm = getFontMetrics(FT_NORMAL);
const int textWidth = fm.width(getName());
const int fontHeight = fm.lineSpacing();
const int a_height = h - fontHeight - A_MARGIN;
@@ -54,25 +54,25 @@ void ActorWidget::draw(QPainter & p, int offsetX, int offsetY) {
p.drawLine(offsetX + middleX - a_width / 2, offsetY + thirdY + thirdY / 2,
offsetX + middleX + a_width / 2, offsetY + thirdY + thirdY / 2); //arms
//draw text
- p.setPen(QPen(Qt::black));
+ p.setPen(TQPen(Qt::black));
p.drawText(offsetX + A_MARGIN, offsetY + h - fontHeight,
w - A_MARGIN * 2, fontHeight, Qt::AlignCenter, getName());
if(m_bSelected)
drawSelected(&p, offsetX, offsetY);
}
-QSize ActorWidget::calculateSize() {
- const QFontMetrics &fm = getFontMetrics(FT_NORMAL);
+TQSize ActorWidget::calculateSize() {
+ const TQFontMetrics &fm = getFontMetrics(FT_NORMAL);
const int fontHeight = fm.lineSpacing();
const int textWidth = fm.width(getName());
int width = textWidth > A_WIDTH ? textWidth : A_WIDTH;
int height = A_HEIGHT + fontHeight + A_MARGIN;
width += A_MARGIN * 2;
- return QSize(width, height);
+ return TQSize(width, height);
}
-void ActorWidget::saveToXMI( QDomDocument & qDoc, QDomElement & qElement ) {
- QDomElement actorElement = qDoc.createElement( "actorwidget" );
+void ActorWidget::saveToXMI( TQDomDocument & qDoc, TQDomElement & qElement ) {
+ TQDomElement actorElement = qDoc.createElement( "actorwidget" );
UMLWidget::saveToXMI( qDoc, actorElement );
qElement.appendChild( actorElement );
}