summaryrefslogtreecommitdiffstats
path: root/libkdepim/kfoldertree.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 /libkdepim/kfoldertree.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 'libkdepim/kfoldertree.h')
-rw-r--r--libkdepim/kfoldertree.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/libkdepim/kfoldertree.h b/libkdepim/kfoldertree.h
index 5946435b8..e09cd7833 100644
--- a/libkdepim/kfoldertree.h
+++ b/libkdepim/kfoldertree.h
@@ -22,10 +22,10 @@
#ifndef __KFOLDERTREE
#define __KFOLDERTREE
-#include <qpixmap.h>
-#include <qbitarray.h>
-#include <qdragobject.h>
-#include <qcolor.h>
+#include <tqpixmap.h>
+#include <tqbitarray.h>
+#include <tqdragobject.h>
+#include <tqcolor.h>
#include <klistview.h>
#include <kdepimmacros.h>
@@ -88,14 +88,14 @@ struct KPaintInfo {
{}
bool pixmapOn;
- QPixmap pixmap;
- QColor colFore;
- QColor colBack;
- QColor colNew;
- QColor colUnread;
- QColor colFlag;
- QColor colTodo;
- QColor colCloseToQuota;
+ TQPixmap pixmap;
+ TQColor colFore;
+ TQColor colBack;
+ TQColor colNew;
+ TQColor colUnread;
+ TQColor colFlag;
+ TQColor colTodo;
+ TQColor colCloseToQuota;
bool showSize;
bool showAttachment;
@@ -164,15 +164,15 @@ class KDE_EXPORT KFolderTreeItem : public KListViewItem
};
/** constructs a root-item */
- KFolderTreeItem( KFolderTree *parent, const QString & label=QString::null,
+ KFolderTreeItem( KFolderTree *parent, const TQString & label=TQString::null,
Protocol protocol=NONE, Type type=Root );
/** constructs a child-item */
- KFolderTreeItem( KFolderTreeItem *parent, const QString & label=QString::null,
+ KFolderTreeItem( KFolderTreeItem *parent, const TQString & label=TQString::null,
Protocol protocol=NONE, Type type=Other, int unread=0, int total=0 );
/** compare */
- virtual int compare( QListViewItem * i, int col,
+ virtual int compare( TQListViewItem * i, int col,
bool ascending ) const;
/** set/get the unread-count */
@@ -201,11 +201,11 @@ class KDE_EXPORT KFolderTreeItem : public KListViewItem
virtual Q_INT64 recursiveFolderSize() const;
/** paints the cell */
- virtual void paintCell( QPainter * p, const QColorGroup & cg,
+ virtual void paintCell( TQPainter * p, const TQColorGroup & cg,
int column, int width, int align );
/** dnd */
- virtual bool acceptDrag(QDropEvent* ) const { return true; }
+ virtual bool acceptDrag(TQDropEvent* ) const { return true; }
void setFolderIsCloseToQuota( bool );
bool folderIsCloseToQuota() const;
@@ -218,8 +218,8 @@ class KDE_EXPORT KFolderTreeItem : public KListViewItem
protected:
/** reimplement to use special squeezing algorithm for the folder name */
- virtual QString squeezeFolderName( const QString &text,
- const QFontMetrics &fm,
+ virtual TQString squeezeFolderName( const TQString &text,
+ const TQFontMetrics &fm,
uint width ) const;
Protocol mProtocol;
@@ -237,7 +237,7 @@ class KDE_EXPORT KFolderTree : public KListView
Q_OBJECT
public:
- KFolderTree( QWidget *parent, const char *name=0 );
+ KFolderTree( TQWidget *parent, const char *name=0 );
/** registers MIMETypes that are handled
@param mimeType the name of the MIMEType
@@ -246,17 +246,17 @@ class KDE_EXPORT KFolderTree : public KListView
virtual void addAcceptableDropMimetype( const char *mimeType, bool outsideOk );
/** checks if the drag is acceptable */
- virtual bool acceptDrag( QDropEvent* event ) const;
+ virtual bool acceptDrag( TQDropEvent* event ) const;
/** returns the KPaintInfo */
KPaintInfo paintInfo() const { return mPaintInfo; }
/** add/remove unread/total-columns */
- virtual void addUnreadColumn( const QString & name, int width=70 );
+ virtual void addUnreadColumn( const TQString & name, int width=70 );
virtual void removeUnreadColumn();
- virtual void addTotalColumn( const QString & name, int width=70 );
+ virtual void addTotalColumn( const TQString & name, int width=70 );
virtual void removeTotalColumn();
- virtual void addSizeColumn( const QString & name, int width=70 );
+ virtual void addSizeColumn( const TQString & name, int width=70 );
virtual void removeSizeColumn();
@@ -276,21 +276,21 @@ class KDE_EXPORT KFolderTree : public KListView
protected:
/** reimplemented in order to update the frame width in case of a changed
GUI style */
- void styleChange( QStyle& oldStyle );
+ void styleChange( TQStyle& oldStyle );
/** Set the width of the frame to a reasonable value for the current GUI
style */
void setStyleDependantFrameWidth();
- virtual void drawContentsOffset( QPainter * p, int ox, int oy,
+ virtual void drawContentsOffset( TQPainter * p, int ox, int oy,
int cx, int cy, int cw, int ch );
- virtual void contentsMousePressEvent( QMouseEvent *e );
- virtual void contentsMouseReleaseEvent( QMouseEvent *e );
+ virtual void contentsMousePressEvent( TQMouseEvent *e );
+ virtual void contentsMouseReleaseEvent( TQMouseEvent *e );
/** for mimetypes */
- QMemArray<const char*> mAcceptableDropMimetypes;
- QBitArray mAcceptOutside;
+ TQMemArray<const char*> mAcceptableDropMimetypes;
+ TQBitArray mAcceptOutside;
/** shared information */ // ### why isn't it then static? ;-)
KPaintInfo mPaintInfo;
@@ -303,7 +303,7 @@ class KDE_EXPORT KFolderTree : public KListView
private slots:
/** repaints the complete column (instead of only parts of it as done in
- QListView) if the size has changed */
+ TQListView) if the size has changed */
void slotSizeChanged( int section, int oldSize, int newSize );
};