summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/packagewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/packagewidget.cpp')
-rw-r--r--umbrello/umbrello/packagewidget.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/umbrello/umbrello/packagewidget.cpp b/umbrello/umbrello/packagewidget.cpp
index 002f723e..c4289b74 100644
--- a/umbrello/umbrello/packagewidget.cpp
+++ b/umbrello/umbrello/packagewidget.cpp
@@ -13,7 +13,7 @@
#include "packagewidget.h"
// qt/kde includes
-#include <qpainter.h>
+#include <tqpainter.h>
#include <kdebug.h>
// app includes
@@ -47,7 +47,7 @@ void PackageWidget::init() {
PackageWidget::~PackageWidget() {}
-void PackageWidget::draw(QPainter & p, int offsetX, int offsetY) {
+void PackageWidget::draw(TQPainter & p, int offsetX, int offsetY) {
UMLWidget::setPen(p);
if ( UMLWidget::getUseFillColour() )
p.setBrush( UMLWidget::getFillColour() );
@@ -56,13 +56,13 @@ void PackageWidget::draw(QPainter & p, int offsetX, int offsetY) {
int w = width();
int h = height();
- QFont font = UMLWidget::getFont();
+ TQFont font = UMLWidget::getFont();
font.setBold(true);
//FIXME italic is true when a package is first created until you click elsewhere, not sure why
font.setItalic(false);
- const QFontMetrics &fm = getFontMetrics(FT_BOLD);
+ const TQFontMetrics &fm = getFontMetrics(FT_BOLD);
const int fontHeight = fm.lineSpacing();
- QString name = getName();
+ TQString name = getName();
p.drawRect(offsetX, offsetY, 50, fontHeight);
if (m_pObject->getStereotype() == "subsystem") {
@@ -76,12 +76,12 @@ void PackageWidget::draw(QPainter & p, int offsetX, int offsetY) {
}
p.drawRect(offsetX, offsetY + fontHeight - 1, w, h - fontHeight);
- p.setPen( QPen(Qt::black) );
+ p.setPen( TQPen(Qt::black) );
p.setFont(font);
int lines = 1;
if (m_pObject != NULL) {
- QString stereotype = m_pObject->getStereotype();
+ TQString stereotype = m_pObject->getStereotype();
if (!stereotype.isEmpty()) {
p.drawText(offsetX, offsetY + fontHeight + PACKAGE_MARGIN,
w, fontHeight, Qt::AlignCenter, m_pObject->getStereotype(true));
@@ -97,12 +97,12 @@ void PackageWidget::draw(QPainter & p, int offsetX, int offsetY) {
}
}
-QSize PackageWidget::calculateSize() {
+TQSize PackageWidget::calculateSize() {
if ( !m_pObject ) {
return UMLWidget::calculateSize();
}
- const QFontMetrics &fm = getFontMetrics(FT_BOLD_ITALIC);
+ const TQFontMetrics &fm = getFontMetrics(FT_BOLD_ITALIC);
const int fontHeight = fm.lineSpacing();
int lines = 1;
@@ -122,11 +122,11 @@ QSize PackageWidget::calculateSize() {
int height = (lines*fontHeight) + fontHeight + (PACKAGE_MARGIN * 2);
- return QSize(width, height);
+ return TQSize(width, height);
}
-void PackageWidget::saveToXMI(QDomDocument& qDoc, QDomElement& qElement) {
- QDomElement conceptElement = qDoc.createElement("packagewidget");
+void PackageWidget::saveToXMI(TQDomDocument& qDoc, TQDomElement& qElement) {
+ TQDomElement conceptElement = qDoc.createElement("packagewidget");
UMLWidget::saveToXMI(qDoc, conceptElement);
qElement.appendChild(conceptElement);
}