summaryrefslogtreecommitdiffstats
path: root/kaddressbook/printing/kabentrypainter.h
diff options
context:
space:
mode:
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;