summaryrefslogtreecommitdiffstats
path: root/kdf/listview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kdf/listview.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdf/listview.cpp')
-rw-r--r--kdf/listview.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kdf/listview.cpp b/kdf/listview.cpp
index b522a22..0334101 100644
--- a/kdf/listview.cpp
+++ b/kdf/listview.cpp
@@ -24,17 +24,17 @@
// 2) Provide a pixmap collection
//
-#include <qbitmap.h>
-#include <qheader.h>
-#include <qpainter.h>
+#include <tqbitmap.h>
+#include <tqheader.h>
+#include <tqpainter.h>
#include <kiconloader.h>
#include "listview.h"
-template class QDict<QPixmap>;
+template class TQDict<TQPixmap>;
-CListView::CListView( QWidget *parent, const char *name, int visibleItem )
+CListView::CListView( TQWidget *parent, const char *name, int visibleItem )
:KListView( parent, name ), mVisibleItem(QMAX( 1, visibleItem ))
{
setVisibleItem(visibleItem);
@@ -46,15 +46,15 @@ void CListView::setVisibleItem( int visibleItem, bool updateSize )
mVisibleItem = QMAX( 1, visibleItem );
if( updateSize == true )
{
- QSize s = sizeHint();
+ TQSize s = sizeHint();
setMinimumSize( s.width() + verticalScrollBar()->sizeHint().width() +
lineWidth() * 2, s.height() );
}
}
-QSize CListView::sizeHint( void ) const
+TQSize CListView::sizeHint( void ) const
{
- QSize s = QListView::sizeHint();
+ TQSize s = TQListView::sizeHint();
int h = fontMetrics().height() + 2*itemMargin();
if( h % 2 > 0 ) { h++; }
@@ -65,34 +65,34 @@ QSize CListView::sizeHint( void ) const
-const QPixmap &CListView::icon( const QString &iconName, bool drawBorder )
+const TQPixmap &CListView::icon( const TQString &iconName, bool drawBorder )
{
- QPixmap *pix = mPixDict[ iconName ];
+ TQPixmap *pix = mPixDict[ iconName ];
if( pix == 0 )
{
- pix = new QPixmap( SmallIcon( iconName ) );
+ pix = new TQPixmap( SmallIcon( iconName ) );
if( drawBorder == true )
{
//
// 2000-01-23 Espen Sand
// Careful here: If the mask has not been defined we can
- // not use QPixmap::mask() because it returns 0 => segfault
+ // not use TQPixmap::mask() because it returns 0 => segfault
//
if( pix->mask() != 0 )
{
- QBitmap *bm = new QBitmap(*(pix->mask()));
+ TQBitmap *bm = new TQBitmap(*(pix->mask()));
if( bm != 0 )
{
- QPainter qp(bm);
- qp.setPen(QPen(white,1));
+ TQPainter qp(bm);
+ qp.setPen(TQPen(white,1));
qp.drawRect(0,0,bm->width(),bm->height());
qp.end();
pix->setMask(*bm);
}
- QPainter qp(pix);
- qp.setPen(QPen(red,1));
+ TQPainter qp(pix);
+ qp.setPen(TQPen(red,1));
qp.drawRect(0,0,pix->width(),pix->height());
qp.end();
delete bm;