diff options
Diffstat (limited to 'umbrello/umbrello/widgetbase.cpp')
-rw-r--r-- | umbrello/umbrello/widgetbase.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/umbrello/umbrello/widgetbase.cpp b/umbrello/umbrello/widgetbase.cpp index 225f5848..9d94e3f1 100644 --- a/umbrello/umbrello/widgetbase.cpp +++ b/umbrello/umbrello/widgetbase.cpp @@ -16,7 +16,7 @@ #include "umlobject.h" #include "optionstate.h" -WidgetBase::WidgetBase(UMLView *view) : QObject(view) { +WidgetBase::WidgetBase(UMLView *view) : TQObject(view) { init(view); } @@ -34,7 +34,7 @@ void WidgetBase::init(UMLView *view, Uml::Widget_Type type /* = Uml::wt_UMLWidge kError() << "WidgetBase constructor: SERIOUS PROBLEM - m_pView is NULL" << endl; m_bUsesDiagramLineColour = false; m_bUsesDiagramLineWidth = false; - m_LineColour = QColor("black"); + m_LineColour = TQColor("black"); m_LineWidth = 0; // initialize with 0 to have valid start condition } } @@ -72,20 +72,20 @@ Uml::IDType WidgetBase::getID() const { return m_nId; } -QString WidgetBase::getDoc() const { +TQString WidgetBase::getDoc() const { if (m_pObject != NULL) return m_pObject->getDoc(); return m_Doc; } -void WidgetBase::setDoc( const QString &doc ) { +void WidgetBase::setDoc( const TQString &doc ) { if (m_pObject != NULL) m_pObject->setDoc( doc ); else m_Doc = doc; } -void WidgetBase::setLineColor(const QColor &colour) { +void WidgetBase::setLineColor(const TQColor &colour) { m_LineColour = colour; m_bUsesDiagramLineColour = false; } @@ -95,7 +95,7 @@ void WidgetBase::setLineWidth(uint width) { m_bUsesDiagramLineWidth = false; } -void WidgetBase::saveToXMI( QDomDocument & /*qDoc*/, QDomElement & qElement ) { +void WidgetBase::saveToXMI( TQDomDocument & /*qDoc*/, TQDomElement & qElement ) { if (m_bUsesDiagramLineColour) { qElement.setAttribute( "linecolor", "none" ); } else { @@ -108,16 +108,16 @@ void WidgetBase::saveToXMI( QDomDocument & /*qDoc*/, QDomElement & qElement ) { } } -bool WidgetBase::loadFromXMI( QDomElement & qElement ) { +bool WidgetBase::loadFromXMI( TQDomElement & qElement ) { // first load from "linecolour" and then overwrite with the "linecolor" // attribute if that one is present. The "linecolour" name was a "typo" in // earlier versions of Umbrello - QString lineColor = qElement.attribute( "linecolour", "none" ); + TQString lineColor = qElement.attribute( "linecolour", "none" ); lineColor = qElement.attribute( "linecolor", lineColor ); - QString lineWidth = qElement.attribute( "linewidth", "none" ); + TQString lineWidth = qElement.attribute( "linewidth", "none" ); if (lineColor != "none") { - setLineColor( QColor(lineColor) ); + setLineColor( TQColor(lineColor) ); m_bUsesDiagramLineColour = false; } else if (m_Type != Uml::wt_Box && m_pView != NULL) { setLineColor( m_pView->getLineColor() ); |