summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/textfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'superkaramba/src/textfield.cpp')
-rw-r--r--superkaramba/src/textfield.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/superkaramba/src/textfield.cpp b/superkaramba/src/textfield.cpp
index d2d0c6b..a3be722 100644
--- a/superkaramba/src/textfield.cpp
+++ b/superkaramba/src/textfield.cpp
@@ -18,7 +18,7 @@ TextField::TextField( )
setColor(TQColor(192, 192, 192));
setBGColor(TQColor(0, 0, 0));
setFont("Helvetica");
- setAlignment(Qt::AlignLeft);
+ tqsetAlignment(TQt::AlignLeft);
setFixedPitch(false);
setShadow(0);
}
@@ -35,7 +35,7 @@ TextField::TextField( const TextField& def )
setBGColor(def.getBGColor());
setFont( def.getFont() );
- setAlignment( def.getAlignment() );
+ tqsetAlignment( def.getAlignment() );
setFixedPitch( def.getFixedPitch() );
setShadow( def.getShadow() );
}
@@ -51,7 +51,7 @@ TextField& TextField::operator=(const TextField& rhs)
setBGColor(rhs.getBGColor());
setFont( rhs.getFont() );
- setAlignment( rhs.getAlignment() );
+ tqsetAlignment( rhs.getAlignment() );
setFixedPitch( rhs.getFixedPitch() );
setShadow( rhs.getShadow() );
@@ -102,32 +102,32 @@ int TextField::getFontSize() const
return font.pointSize();
}
-void TextField::setAlignment( const TQString &align )
+void TextField::tqsetAlignment( const TQString &align )
{
TQString a = align.upper();
if( a == "LEFT" || a.isEmpty() )
- alignment = Qt::AlignLeft;
+ tqalignment = TQt::AlignLeft;
if( a == "RIGHT" )
- alignment = Qt::AlignRight;
+ tqalignment = TQt::AlignRight;
if( a == "CENTER" )
- alignment = Qt::AlignHCenter;
+ tqalignment = TQt::AlignHCenter;
}
-void TextField::setAlignment( int af )
+void TextField::tqsetAlignment( int af )
{
- alignment = af;
+ tqalignment = af;
}
int TextField::getAlignment() const
{
- return alignment;
+ return tqalignment;
}
TQString TextField::getAlignmentAsString() const
{
- if( alignment == Qt::AlignHCenter )
+ if( tqalignment == TQt::AlignHCenter )
return "CENTER";
- else if( alignment == Qt::AlignRight )
+ else if( tqalignment == TQt::AlignRight )
return "RIGHT";
else
return "LEFT";