From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kresources/lib/folderlistview.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kresources/lib/folderlistview.h') diff --git a/kresources/lib/folderlistview.h b/kresources/lib/folderlistview.h index d933402a..e7b634ef 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 &types = QValueList() ); + FolderListView( TQWidget *parent, const TQValueList &types = TQValueList() ); ~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 &types ); + void setEnabledTypes( const TQValueList &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 mTypes; - QMap mColumnMap; - QMap mTypeMap; + TQValueList mTypes; + TQMap mColumnMap; + TQMap 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; -- cgit v1.2.3