diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:52 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:52 -0600 |
commit | bf280726d5d22f33d33e4f9e771220c725249407 (patch) | |
tree | 48b7496821910eb85179d543acee981cf5d16dd8 /superkaramba/src/textfield.cpp | |
parent | c78266617c282543427d2c000b3b68fe2b6b6722 (diff) | |
download | tdeutils-bf280726d5d22f33d33e4f9e771220c725249407.tar.gz tdeutils-bf280726d5d22f33d33e4f9e771220c725249407.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'superkaramba/src/textfield.cpp')
-rw-r--r-- | superkaramba/src/textfield.cpp | 24 |
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"; |