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/textlabel.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/textlabel.cpp')
-rw-r--r-- | superkaramba/src/textlabel.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/superkaramba/src/textlabel.cpp b/superkaramba/src/textlabel.cpp index 0cf8891..09b8f98 100644 --- a/superkaramba/src/textlabel.cpp +++ b/superkaramba/src/textlabel.cpp @@ -13,7 +13,7 @@ #include "textlabel.h" TextLabel::TextLabel(karamba *k, int x,int y,int w,int h): - Meter(k, x,y,w,h), tqalignment(TQt::AlignLeft), clip(0), bgColor(0, 0, 0), + Meter(k, x,y,w,h), alignment(TQt::AlignLeft), clip(0), bgColor(0, 0, 0), lineHeight(0), shadow(0), scrollSpeed(0, 0), scrollPos(0, 0), scrollGap(0), scrollPause(0), pauseCounter(0), scrollType(ScrollNone) { @@ -31,7 +31,7 @@ TextLabel::TextLabel(karamba *k, int x,int y,int w,int h): } TextLabel::TextLabel(karamba *k): - Meter(k, 0, 0, 0, 0), tqalignment(TQt::AlignLeft), clip(0), bgColor(0, 0, 0), + Meter(k, 0, 0, 0, 0), alignment(TQt::AlignLeft), clip(0), bgColor(0, 0, 0), lineHeight(0), shadow(0), scrollSpeed(0, 0), scrollPos(0, 0), scrollGap(0), scrollPause(0), pauseCounter(0), scrollType(ScrollNone) { @@ -60,7 +60,7 @@ void TextLabel::setTextProps( TextField* t ) text = *t; //lineHeight = t->getLineHeight(); shadow = t->getShadow(); - tqalignment = t->getAlignment(); + alignment = t->getAlignment(); setFontSize(t->getFontSize()); setFont(t->getFont()); @@ -131,22 +131,22 @@ int TextLabel::getFontSize() const return font.pixelSize(); } -void TextLabel::tqsetAlignment( TQString align ) +void TextLabel::setAlignment( 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; } TQString TextLabel::getAlignment() 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"; @@ -228,10 +228,10 @@ int TextLabel::drawText(TQPainter *p, int x, int y, int width, int height, { p->setPen(getBGColor()); p->drawText(x + shadow, y + shadow, width, height, - tqalignment | clip | TQt::ExpandTabs, text); + alignment | clip | TQt::ExpandTabs, text); } p->setPen(getColor()); - p->drawText(x, y, width, height, tqalignment | clip | TQt::ExpandTabs, text); + p->drawText(x, y, width, height, alignment | clip | TQt::ExpandTabs, text); return 0; } |