summaryrefslogtreecommitdiffstats
path: root/kresources/lib/folderlistview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/lib/folderlistview.h')
-rw-r--r--kresources/lib/folderlistview.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/kresources/lib/folderlistview.h b/kresources/lib/folderlistview.h
index d933402a3..e7b634ef6 100644
--- a/kresources/lib/folderlistview.h
+++ b/kresources/lib/folderlistview.h
@@ -32,7 +32,7 @@ class FolderListCaption;
/*
- QListView that automatically adds columns for FolderListItems for selecting
+ TQListView that automatically adds columns for FolderListItems for selecting
the default destination and a slot to edit the destinations using the keyboard.
*/
class FolderListView : public KListView
@@ -45,51 +45,51 @@ class FolderListView : public KListView
/* mainly for readability */
enum Property { FolderName, Event, Todo, Journal, Contact, All, Unknown, PROP_MAX };
- FolderListView( QWidget *parent, const QValueList<Property> &types = QValueList<Property>() );
+ FolderListView( TQWidget *parent, const TQValueList<Property> &types = TQValueList<Property>() );
~FolderListView() {};
/* Display a popupmenu for item i at the specified global position, eventually with a title,
promoting the context name of that item */
- void showPopupMenu( FolderListItem *i, const QPoint &globalPos );
+ void showPopupMenu( FolderListItem *i, const TQPoint &globalPos );
void emitChanged() { emit changed(); };
- void setEnabledTypes( const QValueList<Property> &types );
+ void setEnabledTypes( const TQValueList<Property> &types );
int columnForType( Property prop ) const { if ( mColumnMap.contains(prop) ) return mColumnMap[prop]; else return -1;}
Property typeForColumn( int col ) const { if ( mTypeMap.contains( col ) ) return mTypeMap[col]; else return Unknown; }
private slots:
/* Display a popupmenu for item i at item position */
- void showPopupMenu( QListViewItem *i );
+ void showPopupMenu( TQListViewItem *i );
/* call item to change a property, or display a menu */
- void slotMousePressed( int, QListViewItem*, const QPoint&, int );
+ void slotMousePressed( int, TQListViewItem*, const TQPoint&, int );
/* asks item to change the property in q */
void slotPopupHandler( int z );
signals:
void changed();
private:
- QValueList<Property> mTypes;
- QMap<Property,int> mColumnMap;
- QMap<int,Property> mTypeMap;
+ TQValueList<Property> mTypes;
+ TQMap<Property,int> mColumnMap;
+ TQMap<int,Property> mTypeMap;
};
/*
- QListViewItem subclass to display/edit a folder on a groupware server.
+ TQListViewItem subclass to display/edit a folder on a groupware server.
Selection of default destinations will be done via radio items.
*/
class FolderListItem : public QCheckListItem
{
- typedef QCheckListItem super;
+ typedef TQCheckListItem super;
public:
FolderListItem( FolderListItem *parent, const KPIM::FolderLister::Entry &folder )
- : QCheckListItem( parent, folder.name, QCheckListItem::CheckBoxController ),
+ : TQCheckListItem( parent, folder.name, TQCheckListItem::CheckBoxController ),
mFolder( folder ), mFolderListView( parent?(parent->folderListView()):0 )
{
setOn( mFolder.active );
}
FolderListItem( FolderListView *listView, const KPIM::FolderLister::Entry &folder )
- : QCheckListItem( listView, folder.name,
- QCheckListItem::CheckBoxController ), mFolder( folder ), mFolderListView( listView )
+ : TQCheckListItem( listView, folder.name,
+ TQCheckListItem::CheckBoxController ), mFolder( folder ), mFolderListView( listView )
{
setOn( mFolder.active );
}
@@ -100,14 +100,14 @@ class FolderListItem : public QCheckListItem
}
/* reimp */
-// int width ( const QFontMetrics & fm, const QListView * lv, int c ) const;
+// int width ( const TQFontMetrics & fm, const TQListView * lv, int c ) const;
bool typeSupported( FolderListView::Property prop );
bool isDefault( FolderListView::Property prop );
void setDefault( FolderListView::Property prop, bool def = true );
/* calls changeProperty() if it makes sense considering pos. */
- void activate( int column, const QPoint &localPos );
+ void activate( int column, const TQPoint &localPos );
/* Sets this item as default for property p a */
void changeProperty( FolderListView::Property p );
@@ -115,7 +115,7 @@ class FolderListItem : public QCheckListItem
protected:
/* reimp */
- void paintCell(QPainter *p, const QColorGroup& cg, int col, int width, int align);
+ void paintCell(TQPainter *p, const TQColorGroup& cg, int col, int width, int align);
private:
KPIM::FolderLister::Entry mFolder;