summaryrefslogtreecommitdiffstats
path: root/kaddressbook/printing/kabentrypainter.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/printing/kabentrypainter.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/printing/kabentrypainter.h')
-rw-r--r--kaddressbook/printing/kabentrypainter.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/kaddressbook/printing/kabentrypainter.h b/kaddressbook/printing/kabentrypainter.h
index 6c5b8dca9..57ce69d88 100644
--- a/kaddressbook/printing/kabentrypainter.h
+++ b/kaddressbook/printing/kabentrypainter.h
@@ -26,12 +26,12 @@
#include <kabc/addressbook.h>
-#include <qcolor.h>
-#include <qfont.h>
-#include <qrect.h>
-#include <qvaluelist.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqrect.h>
+#include <tqvaluelist.h>
-typedef QValueList<QRect> QRectList;
+typedef TQValueList<TQRect> QRectList;
class KABEntryPainter
{
@@ -41,7 +41,7 @@ class KABEntryPainter
/**
Paint one entry using the given painter. May not only be used on
- printer objects but on any suitable QPaintDevice.
+ printer objects but on any suitable TQPaintDevice.
The function does not paint a background, just the contents of the
addressee.
@@ -58,19 +58,19 @@ class KABEntryPainter
@returns false if some error happens, otherwise true.
*/
- bool printAddressee( const KABC::Addressee &addr, const QRect &window,
- QPainter *p, int top = 0, bool fake = false,
- QRect *rect = 0 );
+ bool printAddressee( const KABC::Addressee &addr, const TQRect &window,
+ TQPainter *p, int top = 0, bool fake = false,
+ TQRect *rect = 0 );
- void setForegroundColor( const QColor &color = Qt::black );
- void setBackgroundColor( const QColor &color = Qt::black );
- void setHeaderColor( const QColor &color = Qt::white );
+ void setForegroundColor( const TQColor &color = Qt::black );
+ void setBackgroundColor( const TQColor &color = Qt::black );
+ void setHeaderColor( const TQColor &color = Qt::white );
- void setHeaderFont( const QFont &font = QFont( "Helvetica", 12, QFont::Normal, true ) );
- void setHeadLineFont( const QFont &font = QFont( "Helvetica", 12, QFont::Normal, true ) );
- void setBodyFont( const QFont &font = QFont( "Helvetica", 12, QFont::Normal, true ) );
- void setFixedFont( const QFont &font = QFont( "Courier", 12, QFont::Normal, true ) );
- void setCommentFont( const QFont &font = QFont( "Helvetica", 10, QFont::Normal, true ) );
+ void setHeaderFont( const TQFont &font = TQFont( "Helvetica", 12, TQFont::Normal, true ) );
+ void setHeadLineFont( const TQFont &font = TQFont( "Helvetica", 12, TQFont::Normal, true ) );
+ void setBodyFont( const TQFont &font = TQFont( "Helvetica", 12, TQFont::Normal, true ) );
+ void setFixedFont( const TQFont &font = TQFont( "Courier", 12, TQFont::Normal, true ) );
+ void setCommentFont( const TQFont &font = TQFont( "Helvetica", 10, TQFont::Normal, true ) );
void setUseHeaderColor( bool value = true );
@@ -85,38 +85,38 @@ class KABEntryPainter
email address in the emails list. If it does not point at one of
the email addresses, -1 is returned.
*/
- int hitsEmail( const QPoint &p );
+ int hitsEmail( const TQPoint &p );
/**
Returns the index of the rectangle if the point p is inside of
one of the telephone numbers. See hitsEmail
*/
- int hitsPhone( const QPoint &p );
+ int hitsPhone( const TQPoint &p );
/**
Returns the index of the rectangle if the point p is inside of
one of the telephone numbers. See hitsEmail
*/
- int hitsTalk( const QPoint &p );
+ int hitsTalk( const TQPoint &p );
/**
Returns the index of the rectangle if the point p is inside of
one of the telephone numbers. See hitsEmail
*/
- int hitsURL( const QPoint &p );
+ int hitsURL( const TQPoint &p );
private:
- int hits( const QRectList& rects, const QPoint &p );
+ int hits( const QRectList& rects, const TQPoint &p );
- QColor mForegroundColor;
- QColor mBackgroundColor;
- QColor mHeaderColor;
+ TQColor mForegroundColor;
+ TQColor mBackgroundColor;
+ TQColor mHeaderColor;
- QFont mHeaderFont;
- QFont mHeadLineFont;
- QFont mBodyFont;
- QFont mFixedFont;
- QFont mCommentFont;
+ TQFont mHeaderFont;
+ TQFont mHeadLineFont;
+ TQFont mBodyFont;
+ TQFont mFixedFont;
+ TQFont mCommentFont;
bool mUseHeaderColor;
bool mShowAddresses;