summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/textfield.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /superkaramba/src/textfield.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/textfield.cpp')
-rw-r--r--superkaramba/src/textfield.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/superkaramba/src/textfield.cpp b/superkaramba/src/textfield.cpp
index 6578466..d2d0c6b 100644
--- a/superkaramba/src/textfield.cpp
+++ b/superkaramba/src/textfield.cpp
@@ -9,14 +9,14 @@
***************************************************************************/
#include "textfield.h"
-#include <qfontmetrics.h>
+#include <tqfontmetrics.h>
#include <kdebug.h>
TextField::TextField( )
{
setFontSize(12);
- setColor(QColor(192, 192, 192));
- setBGColor(QColor(0, 0, 0));
+ setColor(TQColor(192, 192, 192));
+ setBGColor(TQColor(0, 0, 0));
setFont("Helvetica");
setAlignment(Qt::AlignLeft);
setFixedPitch(false);
@@ -58,35 +58,35 @@ TextField& TextField::operator=(const TextField& rhs)
return *this;
}
-void TextField::setColor(QColor clr)
+void TextField::setColor(TQColor clr)
{
color = clr;
}
-QColor TextField::getColor() const
+TQColor TextField::getColor() const
{
return color;
}
-void TextField::setBGColor(QColor clr)
+void TextField::setBGColor(TQColor clr)
{
bgColor = clr;
}
-QColor TextField::getBGColor() const
+TQColor TextField::getBGColor() const
{
return bgColor;
}
-void TextField::setFont(const QString &f)
+void TextField::setFont(const TQString &f)
{
font.setFamily(f);
- lineHeight = QFontMetrics(font).height();
+ lineHeight = TQFontMetrics(font).height();
}
-QString TextField::getFont() const
+TQString TextField::getFont() const
{
return font.family();
}
@@ -94,7 +94,7 @@ QString TextField::getFont() const
void TextField::setFontSize(int size)
{
font.setPointSize(size);
- lineHeight = QFontMetrics(font).height();
+ lineHeight = TQFontMetrics(font).height();
}
int TextField::getFontSize() const
@@ -102,9 +102,9 @@ int TextField::getFontSize() const
return font.pointSize();
}
-void TextField::setAlignment( const QString &align )
+void TextField::setAlignment( const TQString &align )
{
- QString a = align.upper();
+ TQString a = align.upper();
if( a == "LEFT" || a.isEmpty() )
alignment = Qt::AlignLeft;
if( a == "RIGHT" )
@@ -123,7 +123,7 @@ int TextField::getAlignment() const
return alignment;
}
-QString TextField::getAlignmentAsString() const
+TQString TextField::getAlignmentAsString() const
{
if( alignment == Qt::AlignHCenter )
return "CENTER";