diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /certmanager/lib/ui/keylistview.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'certmanager/lib/ui/keylistview.h')
-rw-r--r-- | certmanager/lib/ui/keylistview.h | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/certmanager/lib/ui/keylistview.h b/certmanager/lib/ui/keylistview.h index 3ef708771..11301fe5e 100644 --- a/certmanager/lib/ui/keylistview.h +++ b/certmanager/lib/ui/keylistview.h @@ -48,13 +48,13 @@ namespace Kleo { // work around moc parser bug... #define TEMPLATE_TYPENAME(T) template <typename T> TEMPLATE_TYPENAME(T) - inline T * lvi_cast( QListViewItem * item ) { + inline T * lvi_cast( TQListViewItem * item ) { return item && (item->rtti() & T::RTTI_MASK) == T::RTTI ? static_cast<T*>( item ) : 0 ; } TEMPLATE_TYPENAME(T) - inline const T * lvi_cast( const QListViewItem * item ) { + inline const T * lvi_cast( const TQListViewItem * item ) { return item && (item->rtti() & T::RTTI_MASK) == T::RTTI ? static_cast<const T*>( item ) : 0 ; } @@ -62,7 +62,7 @@ namespace Kleo { class KeyListView; - class KDE_EXPORT KeyListViewItem : public QListViewItem { + class KDE_EXPORT KeyListViewItem : public TQListViewItem { public: KeyListViewItem( KeyListView * parent, const GpgME::Key & key ); KeyListViewItem( KeyListView * parent, KeyListViewItem * after, const GpgME::Key & key ); @@ -78,24 +78,24 @@ namespace Kleo { // // only boring stuff below: // - virtual QString toolTip( int column ) const; + virtual TQString toolTip( int column ) const; /*! \reimp for covariant return */ KeyListView * listView() const; /*! \reimp for covariant return */ KeyListViewItem * nextSibling() const; /*! \reimp */ - int compare( QListViewItem * other, int col, bool ascending ) const; + int compare( TQListViewItem * other, int col, bool ascending ) const; /*! \reimp to allow for key() overload above */ - QString key( int col, bool ascending ) const { return QListViewItem::key( col, ascending ); } + TQString key( int col, bool ascending ) const { return TQListViewItem::key( col, ascending ); } /*! \reimp */ int rtti() const { return RTTI; } /*! \reimp */ - void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int alignment ); + void paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int alignment ); /*! \reimp */ - void insertItem( QListViewItem * item ); + void insertItem( TQListViewItem * item ); /*! \reimp */ - void takeItem( QListViewItem * item ); + void takeItem( TQListViewItem * item ); private: GpgME::Key mKey; @@ -117,17 +117,17 @@ namespace Kleo { // only boring stuff below: // /*! \reimp */ - QString toolTip( int col ) const; + TQString toolTip( int col ) const; /*! \reimp */ - QString text( int col ) const; + TQString text( int col ) const; /*! \reimp */ - const QPixmap * pixmap( int col ) const; + const TQPixmap * pixmap( int col ) const; /*! \reimp */ - int compare( QListViewItem * other, int col, bool ascending ) const; + int compare( TQListViewItem * other, int col, bool ascending ) const; /*! \reimp */ int rtti() const { return RTTI; } /*! \reimp */ - void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int alignment ); + void paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int alignment ); private: GpgME::Subkey mSubkey; @@ -149,17 +149,17 @@ namespace Kleo { // only boring stuff below: // /*! \reimp */ - QString toolTip( int col ) const; + TQString toolTip( int col ) const; /*! \reimp */ - QString text( int col ) const; + TQString text( int col ) const; /*! \reimp */ - const QPixmap * pixmap( int col ) const; + const TQPixmap * pixmap( int col ) const; /*! \reimp */ - int compare( QListViewItem * other, int col, bool ascending ) const; + int compare( TQListViewItem * other, int col, bool ascending ) const; /*! \reimp */ int rtti() const { return RTTI; } /*! \reimp */ - void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int alignment ); + void paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int alignment ); private: GpgME::UserID mUserID; @@ -181,17 +181,17 @@ namespace Kleo { // only boring stuff below: // /*! \reimp */ - QString toolTip( int col ) const; + TQString toolTip( int col ) const; /*! \reimp */ - QString text( int col ) const; + TQString text( int col ) const; /*! \reimp */ - const QPixmap * pixmap( int col ) const; + const TQPixmap * pixmap( int col ) const; /*! \reimp */ - int compare( QListViewItem * other, int col, bool ascending ) const; + int compare( TQListViewItem * other, int col, bool ascending ) const; /*! \reimp */ int rtti() const { return RTTI; } /*! \reimp */ - void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int alignment ); + void paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int alignment ); private: GpgME::UserID::Signature mSignature; @@ -206,28 +206,28 @@ namespace Kleo { class KDE_EXPORT ColumnStrategy { public: virtual ~ColumnStrategy(); - virtual QString title( int column ) const = 0; - virtual int width( int column, const QFontMetrics & fm ) const; - virtual QListView::WidthMode widthMode( int ) const { return QListView::Manual; } + virtual TQString title( int column ) const = 0; + virtual int width( int column, const TQFontMetrics & fm ) const; + virtual TQListView::WidthMode widthMode( int ) const { return TQListView::Manual; } - virtual QString text( const GpgME::Key & key, int column ) const = 0; - virtual QString toolTip( const GpgME::Key & key, int column ) const; - virtual const QPixmap * pixmap( const GpgME::Key &, int ) const { return 0; } + virtual TQString text( const GpgME::Key & key, int column ) const = 0; + virtual TQString toolTip( const GpgME::Key & key, int column ) const; + virtual const TQPixmap * pixmap( const GpgME::Key &, int ) const { return 0; } virtual int compare( const GpgME::Key & key1, const GpgME::Key & key2, const int column ) const; - virtual QString subkeyText( const GpgME::Subkey &, int ) const { return QString::null; } - virtual QString subkeyToolTip( const GpgME::Subkey & subkey, int column ) const; - virtual const QPixmap * subkeyPixmap( const GpgME::Subkey &, int ) const { return 0; } + virtual TQString subkeyText( const GpgME::Subkey &, int ) const { return TQString::null; } + virtual TQString subkeyToolTip( const GpgME::Subkey & subkey, int column ) const; + virtual const TQPixmap * subkeyPixmap( const GpgME::Subkey &, int ) const { return 0; } virtual int subkeyCompare( const GpgME::Subkey & subkey1, const GpgME::Subkey & subkey2, const int column ) const; - virtual QString userIDText( const GpgME::UserID &, int ) const { return QString::null; } - virtual QString userIDToolTip( const GpgME::UserID & userID, int column ) const; - virtual const QPixmap * userIDPixmap( const GpgME::UserID &, int ) const { return 0; } + virtual TQString userIDText( const GpgME::UserID &, int ) const { return TQString::null; } + virtual TQString userIDToolTip( const GpgME::UserID & userID, int column ) const; + virtual const TQPixmap * userIDPixmap( const GpgME::UserID &, int ) const { return 0; } virtual int userIDCompare( const GpgME::UserID & userID1, const GpgME::UserID & userID2, const int column ) const; - virtual QString signatureText( const GpgME::UserID::Signature &, int ) const { return QString::null; } - virtual QString signatureToolTip( const GpgME::UserID::Signature & sig, int column ) const; - virtual const QPixmap * signaturePixmap( const GpgME::UserID::Signature &, int ) const { return 0; } + virtual TQString signatureText( const GpgME::UserID::Signature &, int ) const { return TQString::null; } + virtual TQString signatureToolTip( const GpgME::UserID::Signature & sig, int column ) const; + virtual const TQPixmap * signaturePixmap( const GpgME::UserID::Signature &, int ) const { return 0; } virtual int signatureCompare( const GpgME::UserID::Signature & sig1, const GpgME::UserID::Signature & sig2, const int column ) const; }; @@ -235,25 +235,25 @@ namespace Kleo { public: virtual ~DisplayStrategy(); //font - virtual QFont keyFont( const GpgME::Key &, const QFont & ) const; - virtual QFont subkeyFont( const GpgME::Subkey &, const QFont & ) const; - virtual QFont useridFont( const GpgME::UserID &, const QFont & ) const; - virtual QFont signatureFont( const GpgME::UserID::Signature & , const QFont & ) const; + virtual TQFont keyFont( const GpgME::Key &, const TQFont & ) const; + virtual TQFont subkeyFont( const GpgME::Subkey &, const TQFont & ) const; + virtual TQFont useridFont( const GpgME::UserID &, const TQFont & ) const; + virtual TQFont signatureFont( const GpgME::UserID::Signature & , const TQFont & ) const; //foreground - virtual QColor keyForeground( const GpgME::Key & , const QColor & ) const; - virtual QColor subkeyForeground( const GpgME::Subkey &, const QColor & ) const; - virtual QColor useridForeground( const GpgME::UserID &, const QColor & ) const; - virtual QColor signatureForeground( const GpgME::UserID::Signature &, const QColor & ) const; + virtual TQColor keyForeground( const GpgME::Key & , const TQColor & ) const; + virtual TQColor subkeyForeground( const GpgME::Subkey &, const TQColor & ) const; + virtual TQColor useridForeground( const GpgME::UserID &, const TQColor & ) const; + virtual TQColor signatureForeground( const GpgME::UserID::Signature &, const TQColor & ) const; //background - virtual QColor keyBackground( const GpgME::Key &, const QColor & ) const; - virtual QColor subkeyBackground( const GpgME::Subkey &, const QColor & ) const; - virtual QColor useridBackground( const GpgME::UserID &, const QColor & ) const; - virtual QColor signatureBackground( const GpgME::UserID::Signature &, const QColor & ) const; + virtual TQColor keyBackground( const GpgME::Key &, const TQColor & ) const; + virtual TQColor subkeyBackground( const GpgME::Subkey &, const TQColor & ) const; + virtual TQColor useridBackground( const GpgME::UserID &, const TQColor & ) const; + virtual TQColor signatureBackground( const GpgME::UserID::Signature &, const TQColor & ) const; }; KeyListView( const ColumnStrategy * strategy, const DisplayStrategy * display=0, - QWidget * parent=0, const char * name=0, WFlags f=0 ); + TQWidget * parent=0, const char * name=0, WFlags f=0 ); ~KeyListView(); @@ -267,13 +267,13 @@ namespace Kleo { bool hasSelection() const; - KeyListViewItem * itemByFingerprint( const QCString & ) const; + KeyListViewItem * itemByFingerprint( const TQCString & ) const; signals: - void doubleClicked( Kleo::KeyListViewItem*, const QPoint&, int ); + void doubleClicked( Kleo::KeyListViewItem*, const TQPoint&, int ); void returnPressed( Kleo::KeyListViewItem* ); void selectionChanged( Kleo::KeyListViewItem* ); - void contextMenu( Kleo::KeyListViewItem*, const QPoint& ); + void contextMenu( Kleo::KeyListViewItem*, const TQPoint& ); public slots: virtual void slotAddKey( const GpgME::Key & key ); @@ -283,30 +283,30 @@ namespace Kleo { // Only boring stuff below: // private slots: - void slotEmitDoubleClicked( QListViewItem*, const QPoint&, int ); - void slotEmitReturnPressed( QListViewItem* ); - void slotEmitSelectionChanged( QListViewItem* ); - void slotEmitContextMenu( KListView*, QListViewItem*, const QPoint& ); + void slotEmitDoubleClicked( TQListViewItem*, const TQPoint&, int ); + void slotEmitReturnPressed( TQListViewItem* ); + void slotEmitSelectionChanged( TQListViewItem* ); + void slotEmitContextMenu( KListView*, TQListViewItem*, const TQPoint& ); void slotUpdateTimeout(); public: /*! \reimp for covariant return */ KeyListViewItem * selectedItem() const; /*! \reimp */ - QPtrList<KeyListViewItem> selectedItems() const; + TQPtrList<KeyListViewItem> selectedItems() const; /*! \reimp for covariant return */ KeyListViewItem * firstChild() const; /*! \reimp */ void clear(); /*! \reimp */ - void insertItem( QListViewItem * ); + void insertItem( TQListViewItem * ); /*! \reimp */ - void takeItem( QListViewItem * ); + void takeItem( TQListViewItem * ); private: void doHierarchicalInsert( const GpgME::Key & ); void gatherScattered(); - void scatterGathered( QListViewItem * ); + void scatterGathered( TQListViewItem * ); void registerItem( KeyListViewItem * ); void deregisterItem( const KeyListViewItem * ); |