summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetelistviewitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/ui/kopetelistviewitem.h')
-rw-r--r--kopete/libkopete/ui/kopetelistviewitem.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/kopete/libkopete/ui/kopetelistviewitem.h b/kopete/libkopete/ui/kopetelistviewitem.h
index 5952c569..e57482d0 100644
--- a/kopete/libkopete/ui/kopetelistviewitem.h
+++ b/kopete/libkopete/ui/kopetelistviewitem.h
@@ -23,7 +23,7 @@
#include <kopetecontact.h>
#include <utility>
-#include <qimage.h>
+#include <tqimage.h>
class QPixmap;
@@ -41,7 +41,7 @@ public:
uint components();
Component *component( uint n );
- Component *componentAt( const QPoint &pt );
+ Component *componentAt( const TQPoint &pt );
/** Repaint this item */
virtual void repaint() = 0;
@@ -55,7 +55,7 @@ public:
* @return a pair where the first element is the tooltip, and the second is
* the rectangle within the item for which the tip should be displayed.
*/
- virtual std::pair<QString,QRect> toolTip( const QPoint &relativePos );
+ virtual std::pair<TQString,TQRect> toolTip( const TQPoint &relativePos );
protected:
/** A child item has been added to this item */
@@ -91,7 +91,7 @@ public:
* @param rect The tip will be removed when the mouse leaves this rect.
* Will initially be set to \p component's rect().
*/
- virtual QString operator() ( ComponentBase *component, const QPoint &pt, QRect &rect ) = 0;
+ virtual TQString operator() ( ComponentBase *component, const TQPoint &pt, TQRect &rect ) = 0;
};
/**
@@ -112,13 +112,13 @@ public:
* @param rect the new rectangle this component will paint in, relative to the painter
* passed to the paint() function by the parent item.
*/
- virtual void layout( const QRect &rect );
+ virtual void layout( const TQRect &rect );
/**
* Paint this item, inside the rectangle returned by rect().
* The default implementation calls paint on all children.
*/
- virtual void paint( QPainter *painter, const QColorGroup &cg );
+ virtual void paint( TQPainter *painter, const TQColorGroup &cg );
void repaint();
void relayout();
@@ -126,7 +126,7 @@ public:
/**
* @return the rect this component was allocated last time it was laid out
*/
- QRect rect();
+ TQRect rect();
/**
* Prevents this component to be drawn
*/
@@ -177,7 +177,7 @@ public:
* @return a pair where the first element is the tooltip, and the second is
* the rectangle within the item for which the tip should be displayed.
*/
- std::pair<QString,QRect> toolTip( const QPoint &relativePos );
+ std::pair<TQString,TQRect> toolTip( const TQPoint &relativePos );
/**
* RTTI: Runtime Type Information
@@ -221,9 +221,9 @@ private:
friend void ComponentBase::updateAnimationPosition( int p, int s );
// used for animation
- void setRect( const QRect &rect );
- QRect startRect();
- QRect targetRect();
+ void setRect( const TQRect &rect );
+ TQRect startRect();
+ TQRect targetRect();
class Private;
Private *d;
@@ -236,7 +236,7 @@ public:
BoxComponent( ComponentBase *parent, Direction dir = Horizontal );
~BoxComponent();
- void layout( const QRect &rect );
+ void layout( const TQRect &rect );
virtual int widthForHeight( int height );
virtual int heightForWidth( int width );
@@ -259,22 +259,22 @@ private:
class TextComponent : public Component
{
public:
- TextComponent( ComponentBase *parent, const QFont &font = QFont(), const QString &text = QString::null );
+ TextComponent( ComponentBase *parent, const TQFont &font = TQFont(), const TQString &text = TQString::null );
~TextComponent();
- QString text();
- void setText( const QString &text );
+ TQString text();
+ void setText( const TQString &text );
- QFont font();
- void setFont( const QFont &font );
+ TQFont font();
+ void setFont( const TQFont &font );
- QColor color();
- void setColor( const QColor &color );
+ TQColor color();
+ void setColor( const TQColor &color );
void setDefaultColor();
int widthForHeight( int );
- void paint( QPainter *painter, const QColorGroup &cg );
+ void paint( TQPainter *painter, const TQColorGroup &cg );
static int RTTI;
virtual int rtti() const { return RTTI; }
@@ -293,12 +293,12 @@ public:
ImageComponent( ComponentBase *parent, int minW, int minH );
~ImageComponent();
- void setPixmap( const QPixmap &img, bool adjustSize = true);
- QPixmap pixmap( void );
+ void setPixmap( const TQPixmap &img, bool adjustSize = true);
+ TQPixmap pixmap( void );
- void paint( QPainter *painter, const QColorGroup &cg );
+ void paint( TQPainter *painter, const TQColorGroup &cg );
- void scale( int w, int h, QImage::ScaleMode );
+ void scale( int w, int h, TQImage::ScaleMode );
static int RTTI;
virtual int rtti() const { return RTTI; }
private:
@@ -316,7 +316,7 @@ public:
~ContactComponent();
void updatePixmap();
Kopete::Contact *contact();
- std::pair<QString,QRect> toolTip( const QPoint &relativePos );
+ std::pair<TQString,TQRect> toolTip( const TQPoint &relativePos );
protected:
class Private;
Private *d;
@@ -347,12 +347,12 @@ public:
* Dtor
*/
~DisplayNameComponent();
- void layout( const QRect& rect );
+ void layout( const TQRect& rect );
- QString text();
- void setText( const QString& text );
- void setFont( const QFont& font );
- void setColor( const QColor& color );
+ TQString text();
+ void setText( const TQString& text );
+ void setFont( const TQFont& font );
+ void setColor( const TQColor& color );
void setDefaultColor();
static int RTTI;
virtual int rtti() const { return RTTI; }
@@ -392,19 +392,19 @@ public:
*
* @author Richard Smith <kde@metafoo.co.uk>
*/
-class Item : public QObject, public KListViewItem, public ComponentBase
+class Item : public TQObject, public KListViewItem, public ComponentBase
{
Q_OBJECT
public:
- Item( QListView *parent, QObject *owner = 0, const char *name = 0 );
- Item( QListViewItem *parent, QObject *owner = 0, const char *name = 0 );
+ Item( TQListView *parent, TQObject *owner = 0, const char *name = 0 );
+ Item( TQListViewItem *parent, TQObject *owner = 0, const char *name = 0 );
~Item();
void repaint();
void relayout();
void setup();
- virtual void paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int align );
+ virtual void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align );
//TODO: startRename(...)
float opacity();
@@ -421,7 +421,7 @@ public:
*/
static void setEffects( bool animation, bool fading, bool folding );
- int width( const QFontMetrics & fm, const QListView * lv, int c ) const;
+ int width( const TQFontMetrics & fm, const TQListView * lv, int c ) const;
/**
* Show or hide this item in a clean way depending on whether it matches