summaryrefslogtreecommitdiffstats
path: root/kolourpaint/kptextstyle.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/kptextstyle.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/kptextstyle.cpp')
-rw-r--r--kolourpaint/kptextstyle.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kolourpaint/kptextstyle.cpp b/kolourpaint/kptextstyle.cpp
index 9f4d8fce..61f58dab 100644
--- a/kolourpaint/kptextstyle.cpp
+++ b/kolourpaint/kptextstyle.cpp
@@ -28,9 +28,9 @@
#include <kptextstyle.h>
-#include <qdatastream.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
+#include <tqdatastream.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
kpTextStyle::kpTextStyle ()
@@ -41,7 +41,7 @@ kpTextStyle::kpTextStyle ()
{
}
-kpTextStyle::kpTextStyle (const QString &fontFamily,
+kpTextStyle::kpTextStyle (const TQString &fontFamily,
int fontSize,
bool isBold, bool isItalic,
bool isUnderline, bool isStrikeThru,
@@ -62,7 +62,7 @@ kpTextStyle::~kpTextStyle ()
// friend
-QDataStream &operator<< (QDataStream &stream, const kpTextStyle &textStyle)
+TQDataStream &operator<< (TQDataStream &stream, const kpTextStyle &textStyle)
{
stream << textStyle.m_fontFamily;
stream << textStyle.m_fontSize;
@@ -78,7 +78,7 @@ QDataStream &operator<< (QDataStream &stream, const kpTextStyle &textStyle)
}
// friend
-QDataStream &operator>> (QDataStream &stream, kpTextStyle &textStyle)
+TQDataStream &operator>> (TQDataStream &stream, kpTextStyle &textStyle)
{
stream >> textStyle.m_fontFamily;
stream >> textStyle.m_fontSize;
@@ -121,13 +121,13 @@ bool kpTextStyle::operator!= (const kpTextStyle &rhs) const
// public
-QString kpTextStyle::fontFamily () const
+TQString kpTextStyle::fontFamily () const
{
return m_fontFamily;
}
// public
-void kpTextStyle::setFontFamily (const QString &f)
+void kpTextStyle::setFontFamily (const TQString &f)
{
m_fontFamily = f;
}
@@ -261,9 +261,9 @@ kpColor kpTextStyle::effectiveBackgroundColor () const
// public
-QFont kpTextStyle::font () const
+TQFont kpTextStyle::font () const
{
- QFont fnt (m_fontFamily, m_fontSize);
+ TQFont fnt (m_fontFamily, m_fontSize);
fnt.setBold (m_isBold);
fnt.setItalic (m_isItalic);
fnt.setUnderline (m_isUnderline);
@@ -273,7 +273,7 @@ QFont kpTextStyle::font () const
}
// public
-QFontMetrics kpTextStyle::fontMetrics () const
+TQFontMetrics kpTextStyle::fontMetrics () const
{
- return QFontMetrics (font ());
+ return TQFontMetrics (font ());
}