summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/componentwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /umbrello/umbrello/componentwidget.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-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/componentwidget.cpp')
-rw-r--r--umbrello/umbrello/componentwidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/umbrello/umbrello/componentwidget.cpp b/umbrello/umbrello/componentwidget.cpp
index 84bae8b0..7e8b1fd5 100644
--- a/umbrello/umbrello/componentwidget.cpp
+++ b/umbrello/umbrello/componentwidget.cpp
@@ -74,14 +74,14 @@ void ComponentWidget::draw(TQPainter & p, int offsetX, int offsetY) {
p.drawRect(offsetX, offsetY + h/2 - fontHeight/2 - fontHeight, COMPONENT_MARGIN*4, fontHeight);
p.drawRect(offsetX, offsetY + h/2 + fontHeight/2, COMPONENT_MARGIN*4, fontHeight);
- p.setPen( TQPen(Qt::black) );
+ p.setPen( TQPen(TQt::black) );
p.setFont(font);
int lines = 1;
if (!stereotype.isEmpty()) {
p.drawText(offsetX + (COMPONENT_MARGIN*4), offsetY + (h/2) - fontHeight,
- w - (COMPONENT_MARGIN*4), fontHeight, Qt::AlignCenter,
+ w - (COMPONENT_MARGIN*4), fontHeight, TQt::AlignCenter,
m_pObject->getStereotype(true));
lines = 2;
}
@@ -94,10 +94,10 @@ void ComponentWidget::draw(TQPainter & p, int offsetX, int offsetY) {
if (lines == 1) {
p.drawText(offsetX + (COMPONENT_MARGIN*4), offsetY + (h/2) - (fontHeight/2),
- w - (COMPONENT_MARGIN*4), fontHeight, Qt::AlignCenter, name );
+ w - (COMPONENT_MARGIN*4), fontHeight, TQt::AlignCenter, name );
} else {
p.drawText(offsetX + (COMPONENT_MARGIN*4), offsetY + (h/2),
- w - (COMPONENT_MARGIN*4), fontHeight, Qt::AlignCenter, name );
+ w - (COMPONENT_MARGIN*4), fontHeight, TQt::AlignCenter, name );
}
if(m_bSelected) {