diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /parts/filecreate/filecreate_listitem.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/filecreate/filecreate_listitem.cpp')
-rw-r--r-- | parts/filecreate/filecreate_listitem.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/parts/filecreate/filecreate_listitem.cpp b/parts/filecreate/filecreate_listitem.cpp index 4b33514f..b6467505 100644 --- a/parts/filecreate/filecreate_listitem.cpp +++ b/parts/filecreate/filecreate_listitem.cpp @@ -1,7 +1,7 @@ /*************************************************************************** * Copyright (C) 2003 by Julian Rockey * * linux@jrockey.com * - * thanks: Roberto Raggi for QSimpleRichText stuff * + * thanks: Roberto Raggi for TQSimpleRichText stuff * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -15,12 +15,12 @@ #include <kglobal.h> #include <kiconloader.h> -#include <qsimplerichtext.h> -#include <qpixmap.h> +#include <tqsimplerichtext.h> +#include <tqpixmap.h> namespace FileCreate { - ListItem::ListItem(QListView * listview, const FileType * filetype) : + ListItem::ListItem(TQListView * listview, const FileType * filetype) : KListViewItem(listview), m_filetype(filetype), m_filetypeRenderer(NULL) { @@ -43,7 +43,7 @@ namespace FileCreate { void ListItem::setup() { if (m_filetypeRenderer) delete m_filetypeRenderer; - m_filetypeRenderer = new QSimpleRichText( text(1), listView()->font() ); + m_filetypeRenderer = new TQSimpleRichText( text(1), listView()->font() ); m_filetypeRenderer->setWidth(listView()->columnWidth(1)); setHeight(m_filetypeRenderer->height()); KListViewItem::setup(); @@ -61,15 +61,15 @@ namespace FileCreate { } } - void ListItem::paintCell( QPainter* p, const QColorGroup& cg, int column, int width, int align ) + void ListItem::paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int align ) { - QBrush brush( isSelected() ? cg.highlight() : backgroundColor() ); + TQBrush brush( isSelected() ? cg.highlight() : backgroundColor() ); if( column == 1 ){ // m_filetypeRenderer->setWidth(width); // setHeight(m_filetypeRenderer->height()); - m_filetypeRenderer->draw( p, 0, 0, QRect(0, 0, width, height()), cg, &brush ); + m_filetypeRenderer->draw( p, 0, 0, TQRect(0, 0, width, height()), cg, &brush ); return; } @@ -79,11 +79,11 @@ namespace FileCreate { void ListItem::init() { m_iconHeight = 0; - setText(0, m_filetype->ext()!="" ? QString("." + m_filetype->ext()) : QString("") ); + setText(0, m_filetype->ext()!="" ? TQString("." + m_filetype->ext()) : TQString("") ); setText(1, "<qt><b>"+m_filetype->name()+"</b>. " + m_filetype->descr() ); KIconLoader * loader = KGlobal::iconLoader(); - QPixmap iconPix = loader->loadIcon(m_filetype->icon(), KIcon::Desktop, + TQPixmap iconPix = loader->loadIcon(m_filetype->icon(), KIcon::Desktop, KIcon::SizeMedium, KIcon::DefaultState, NULL, true); |