summaryrefslogtreecommitdiffstats
path: root/src/tastylistview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tastylistview.h')
-rw-r--r--src/tastylistview.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/src/tastylistview.h b/src/tastylistview.h
index fae9d02..47917d7 100644
--- a/src/tastylistview.h
+++ b/src/tastylistview.h
@@ -27,10 +27,10 @@
#include <kservice.h>
#include <kservicegroup.h>
#include <kdesktopfile.h>
-#include <qpixmap.h>
-#include <qtooltip.h>
-#include <qtimer.h>
-#include <qheader.h>
+#include <tqpixmap.h>
+#include <tqtooltip.h>
+#include <tqtimer.h>
+#include <tqheader.h>
class TastyListView;
@@ -39,12 +39,12 @@ class TastyListView;
/**
@author Marco Martin <[email protected]>
*/
-class TastyListViewToolTip: public QToolTip
+class TastyListViewToolTip: public TQToolTip
{
public:
- TastyListViewToolTip( QWidget *parent, TastyListView *tListView );
+ TastyListViewToolTip( TQWidget *parent, TastyListView *tListView );
- void maybeTip( const QPoint &pos );
+ void maybeTip( const TQPoint &pos );
private:
TastyListView *listView;
@@ -58,9 +58,9 @@ class TastyListView : public KListView
Q_OBJECT
private:
bool highLightGroups;
- QTimer *onItemTimer;
- QListViewItem *underCursorItem;
- QListViewItem *openItem;
+ TQTimer *onItemTimer;
+ TQListViewItem *underCursorItem;
+ TQListViewItem *openItem;
bool mouseDown;
bool easyOpen;
int actionIconSize;
@@ -69,7 +69,7 @@ private:
TastyListViewToolTip *listItemTip;
public:
- TastyListView( QWidget * parent = 0, const char * name = 0);
+ TastyListView( TQWidget * parent = 0, const char * name = 0);
~TastyListView();
@@ -84,27 +84,27 @@ public:
int getActionIconSize(){return actionIconSize;}
int getActionIconSpace(){return actionIconSpace;}
- QListViewItem * getOpenItem(){ return openItem;}
- void setOpenItem( QListViewItem * listItem ){openItem = listItem;}
+ TQListViewItem * getOpenItem(){ return openItem;}
+ void setOpenItem( TQListViewItem * listItem ){openItem = listItem;}
public slots:
virtual void clear(){openItem = underCursorItem = NULL; KListView::clear();}
protected:
- virtual void leaveEvent( QEvent * e );
- virtual void contentsMouseMoveEvent( QMouseEvent * e );
- virtual void contentsMouseReleaseEvent( QMouseEvent * e );
- virtual void keyPressEvent( QKeyEvent * e );
+ virtual void leaveEvent( TQEvent * e );
+ virtual void contentsMouseMoveEvent( TQMouseEvent * e );
+ virtual void contentsMouseReleaseEvent( TQMouseEvent * e );
+ virtual void keyPressEvent( TQKeyEvent * e );
private slots:
- void slotOnItem( QListViewItem * listItem );
+ void slotOnItem( TQListViewItem * listItem );
void slotTimeout();
signals:
//Using own signal instead of clicked() in order to avoid launching two times the same app :-)
- void activated(QListViewItem *, const QPoint &, int );
+ void activated(TQListViewItem *, const TQPoint &, int );
};
@@ -137,20 +137,20 @@ friend class TastyListView;
TastyListViewItem( TastyListView * parent );
TastyListViewItem( TastyListViewItem * parent );
- TastyListViewItem( TastyListView * parent, TastyListViewItem * after, QString label1 );
- TastyListViewItem( TastyListViewItem * parent, TastyListViewItem * after, QString label1 );
+ TastyListViewItem( TastyListView * parent, TastyListViewItem * after, TQString label1 );
+ TastyListViewItem( TastyListViewItem * parent, TastyListViewItem * after, TQString label1 );
TastyListViewItem( TastyListView * parent, TastyListViewItem * after );
TastyListViewItem( TastyListViewItem * parent, TastyListViewItem * after );
- TastyListViewItem( TastyListView * parent, QString label1 );
- TastyListViewItem( TastyListViewItem * parent, QString label1 );
+ TastyListViewItem( TastyListView * parent, TQString label1 );
+ TastyListViewItem( TastyListViewItem * parent, TQString label1 );
~TastyListViewItem();
- //QString text(int column) const {return cellText;}
- QString getCellText(int column) const {return cellText;}
+ //TQString text(int column) const {return cellText;}
+ TQString getCellText(int column) const {return cellText;}
//TastyListViewItem *parent();
- void paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align );
+ void paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align );
Type getType(){return itemType;}
void setType( Type newItemType ){itemType = newItemType;}
@@ -159,24 +159,24 @@ friend class TastyListView;
void setActionType( ActionType newActionType ){ actionType = newActionType;loadPixmap();}
void loadPixmap();
- void setPath( QString newPath){ path = newPath;}
- QString getPath(){return path;}
+ void setPath( TQString newPath){ path = newPath;}
+ TQString getPath(){return path;}
- void setDeskopEntryPath( QString newPath){ desktopEntryPath = newPath;}
- QString getDeskopEntryPath(){return desktopEntryPath;}
+ void setDeskopEntryPath( TQString newPath){ desktopEntryPath = newPath;}
+ TQString getDeskopEntryPath(){return desktopEntryPath;}
- QString getSubText(){return subText;}
+ TQString getSubText(){return subText;}
bool xOnDecoration( int x )
- { QListView *lv = listView();
+ { TQListView *lv = listView();
if( !lv ) return false;
return !( x > lv->header()->sectionPos( lv->header()->mapToIndex( 0 ) ) +
lv->treeStepSize() * ( depth() + ( lv->rootIsDecorated() ? 1 : 0) ) + lv->itemMargin() ||
x < lv->header()->sectionPos( lv->header()->mapToIndex( 0 ) ) );}
- void setSubText(QString text) //FIXME: add the column
+ void setSubText(TQString text) //FIXME: add the column
{if(cellText.isEmpty())cellText=KListViewItem::text(0);
- KListViewItem::setText(0,cellText+text);subText = QString(text);}
- void setText(int column, const QString & text )
+ KListViewItem::setText(0,cellText+text);subText = TQString(text);}
+ void setText(int column, const TQString & text )
{KListViewItem::setText(column, cellText+text); cellText = text;}
void setDisplaySubText( bool display ){ displaySubText = display; }
@@ -184,12 +184,12 @@ friend class TastyListView;
void setHighLight( bool newHighLight ){highLight=newHighLight;}
bool isHighLight(){return highLight;}
- void setMenuId( QString newMenuId ){ menuId = newMenuId;}
- QString getMenuId(){ return menuId; }
+ void setMenuId( TQString newMenuId ){ menuId = newMenuId;}
+ TQString getMenuId(){ return menuId; }
- QString key( int column, bool ascending ) const;
+ TQString key( int column, bool ascending ) const;
- int width( const QFontMetrics & fm, const QListView * lv, int c )
+ int width( const TQFontMetrics & fm, const TQListView * lv, int c )
{ TastyListView *tlv = dynamic_cast<TastyListView *>( listView() );
if( tlv )
return KListViewItem::width(fm, lv, c) + tlv->getActionIconSpace();
@@ -204,16 +204,16 @@ private:
Type itemType;
ActionType actionType;
- QString path;
- QString desktopEntryPath;
- QString cellText;
- QString subText;
- QString menuId;
+ TQString path;
+ TQString desktopEntryPath;
+ TQString cellText;
+ TQString subText;
+ TQString menuId;
bool ellipsis;
bool highLight;
bool displaySubText;
- QPixmap actionPix;
+ TQPixmap actionPix;
KIconLoader *iconLoader;
void commonConstructor();