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 a3be722..4b1cee2 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");
- tqsetAlignment(TQt::AlignLeft);
+ setAlignment(TQt::AlignLeft);
setFixedPitch(false);
setShadow(0);
}
@@ -35,7 +35,7 @@ TextField::TextField( const TextField& def )
setBGColor(def.getBGColor());
setFont( def.getFont() );
- tqsetAlignment( def.getAlignment() );
+ setAlignment( def.getAlignment() );
setFixedPitch( def.getFixedPitch() );
setShadow( def.getShadow() );
}
@@ -51,7 +51,7 @@ TextField& TextField::operator=(const TextField& rhs)
setBGColor(rhs.getBGColor());
setFont( rhs.getFont() );
- tqsetAlignment( rhs.getAlignment() );
+ setAlignment( rhs.getAlignment() );
setFixedPitch( rhs.getFixedPitch() );
setShadow( rhs.getShadow() );
@@ -102,32 +102,32 @@ int TextField::getFontSize() const
return font.pointSize();
}
-void TextField::tqsetAlignment( const TQString &align )
+void TextField::setAlignment( const TQString &align )
{
TQString a = align.upper();
if( a == "LEFT" || a.isEmpty() )
- tqalignment = TQt::AlignLeft;
+ alignment = TQt::AlignLeft;
if( a == "RIGHT" )
- tqalignment = TQt::AlignRight;
+ alignment = TQt::AlignRight;
if( a == "CENTER" )
- tqalignment = TQt::AlignHCenter;
+ alignment = TQt::AlignHCenter;
}
-void TextField::tqsetAlignment( int af )
+void TextField::setAlignment( int af )
{
- tqalignment = af;
+ alignment = af;
}
int TextField::getAlignment() const
{
- return tqalignment;
+ return alignment;
}
TQString TextField::getAlignmentAsString() const
{
- if( tqalignment == TQt::AlignHCenter )
+ if( alignment == TQt::AlignHCenter )
return "CENTER";
- else if( tqalignment == TQt::AlignRight )
+ else if( alignment == TQt::AlignRight )
return "RIGHT";
else
return "LEFT";