diff options
Diffstat (limited to 'src/kbfxplasmacanvasitemwrapper.cpp')
-rw-r--r-- | src/kbfxplasmacanvasitemwrapper.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/kbfxplasmacanvasitemwrapper.cpp b/src/kbfxplasmacanvasitemwrapper.cpp index 1c244f4..a39663c 100644 --- a/src/kbfxplasmacanvasitemwrapper.cpp +++ b/src/kbfxplasmacanvasitemwrapper.cpp @@ -20,10 +20,10 @@ */ #include "kbfxplasmacanvasitemwrapper.h" -#include <qptrlist.h> +#include <tqptrlist.h> #include <kbfxplasmapixmapprovider.h> -KbfxPlasmaCanvasItemWrapper::KbfxPlasmaCanvasItemWrapper ( QCanvas * canvas ) +KbfxPlasmaCanvasItemWrapper::KbfxPlasmaCanvasItemWrapper ( TQCanvas * canvas ) { m_canvas = canvas; } @@ -31,48 +31,48 @@ KbfxPlasmaCanvasItemWrapper::KbfxPlasmaCanvasItemWrapper ( QCanvas * canvas ) KbfxPlasmaCanvasItemWrapper::~KbfxPlasmaCanvasItemWrapper () {} -QCanvasItem * +TQCanvasItem * KbfxPlasmaCanvasItemWrapper::item ( KbfxPlasmaCanvasItem::Type __type ) { - QPixmap _img_sep = ( *KbfxPlasmaPixmapProvider::pixmap ( "separator" ) ); - QImage _tmp_img = _img_sep.convertToImage(); - _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_sep.height (),QImage::ScaleFree ); - _img_sep = QPixmap ( _tmp_img ); + TQPixmap _img_sep = ( *KbfxPlasmaPixmapProvider::pixmap ( "separator" ) ); + TQImage _tmp_img = _img_sep.convertToImage(); + _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_sep.height (),TQ_ScaleFree ); + _img_sep = TQPixmap ( _tmp_img ); - QPixmap _img_tnorm = ( *KbfxPlasmaPixmapProvider::pixmap ( "tilenormal" ) ); + TQPixmap _img_tnorm = ( *KbfxPlasmaPixmapProvider::pixmap ( "tilenormal" ) ); _tmp_img = _img_tnorm.convertToImage(); - _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_tnorm.height (),QImage::ScaleFree ); - _img_tnorm = QPixmap ( _tmp_img ); + _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_tnorm.height (),TQ_ScaleFree ); + _img_tnorm = TQPixmap ( _tmp_img ); - QPixmap _img_thov = ( *KbfxPlasmaPixmapProvider::pixmap ( "tilehover" ) ); + TQPixmap _img_thov = ( *KbfxPlasmaPixmapProvider::pixmap ( "tilehover" ) ); _tmp_img = _img_thov.convertToImage(); - _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_thov.height (),QImage::ScaleFree ); - _img_thov = QPixmap ( _tmp_img ); + _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_thov.height (),TQ_ScaleFree ); + _img_thov = TQPixmap ( _tmp_img ); if ( __type == KbfxPlasmaCanvasItem::SEPARATOR ) { - QValueList<QPixmap> list; + TQValueList<TQPixmap> list; list.append ( _img_sep ); KbfxPlasmaCanvasItem *_ret = - new KbfxPlasmaCanvasItem ( new QCanvasPixmapArray ( list ),m_canvas ); + new KbfxPlasmaCanvasItem ( new TQCanvasPixmapArray ( list ),m_canvas ); _ret->setType ( __type ); - return ( QCanvasItem * ) _ret; + return ( TQCanvasItem * ) _ret; } if ( __type == KbfxPlasmaCanvasItem::EXECUTABLE ) { - QValueList<QPixmap> list; + TQValueList<TQPixmap> list; list.append ( _img_tnorm ); list.append ( _img_thov ); - QCanvasPixmapArray * _pArray = new QCanvasPixmapArray ( list ); + TQCanvasPixmapArray * _pArray = new TQCanvasPixmapArray ( list ); KbfxPlasmaCanvasItem *_ret = new KbfxPlasmaCanvasItem ( _pArray, m_canvas ); _ret->setType ( __type ); - return ( QCanvasItem * ) _ret; + return ( TQCanvasItem * ) _ret; } @@ -80,43 +80,43 @@ KbfxPlasmaCanvasItemWrapper::item ( KbfxPlasmaCanvasItem::Type __type ) } -QCanvasItem * +TQCanvasItem * KbfxPlasmaCanvasItemWrapper::itemIndex ( KbfxPlasmaCanvasItem::Type __type ) { - QPixmap _img_isep = ( *KbfxPlasmaPixmapProvider::pixmap ( "indexseparator" ) ); - QImage _tmp_img = _img_isep.convertToImage(); - _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_isep.height (),QImage::ScaleFree ); - _img_isep = QPixmap ( _tmp_img ); + TQPixmap _img_isep = ( *KbfxPlasmaPixmapProvider::pixmap ( "indexseparator" ) ); + TQImage _tmp_img = _img_isep.convertToImage(); + _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_isep.height (),TQ_ScaleFree ); + _img_isep = TQPixmap ( _tmp_img ); - QPixmap _img_r = ( *KbfxPlasmaPixmapProvider::pixmap ( "rhstile" ) ); + TQPixmap _img_r = ( *KbfxPlasmaPixmapProvider::pixmap ( "rhstile" ) ); _tmp_img = _img_r.convertToImage(); - _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_r.height (),QImage::ScaleFree ); - _img_r = QPixmap ( _tmp_img ); + _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_r.height (),TQ_ScaleFree ); + _img_r = TQPixmap ( _tmp_img ); - QPixmap _img_rhov = ( *KbfxPlasmaPixmapProvider::pixmap ( "rhshovertile" ) ); + TQPixmap _img_rhov = ( *KbfxPlasmaPixmapProvider::pixmap ( "rhshovertile" ) ); _tmp_img = _img_rhov.convertToImage(); - _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_rhov.height (),QImage::ScaleFree ); - _img_rhov = QPixmap ( _tmp_img ); + _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_rhov.height (),TQ_ScaleFree ); + _img_rhov = TQPixmap ( _tmp_img ); if ( __type == KbfxPlasmaCanvasItem::SEPARATOR ) { - QValueList<QPixmap> list; + TQValueList<TQPixmap> list; list.append ( _img_isep ); KbfxPlasmaIndexItem *_ret = - new KbfxPlasmaIndexItem ( new QCanvasPixmapArray ( list ),m_canvas ); + new KbfxPlasmaIndexItem ( new TQCanvasPixmapArray ( list ),m_canvas ); _ret->setType ( __type ); - return ( QCanvasItem * ) _ret; + return ( TQCanvasItem * ) _ret; } if ( __type == KbfxPlasmaCanvasItem::INDEX ) { - QValueList<QPixmap> list2; + TQValueList<TQPixmap> list2; list2.append ( _img_r ); list2.append ( _img_rhov ); - KbfxPlasmaIndexItem *_ret = new KbfxPlasmaIndexItem ( new QCanvasPixmapArray ( list2 ), + KbfxPlasmaIndexItem *_ret = new KbfxPlasmaIndexItem ( new TQCanvasPixmapArray ( list2 ), m_canvas ); _ret->setType ( __type ); - return ( QCanvasItem * ) _ret; + return ( TQCanvasItem * ) _ret; } return 0; |