From 5f5e7c5455d52826b0bd50f64fcffb7695ce970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 12:56:53 +0200 Subject: Initial TQt conversion --- src/documentlistviewitem.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/documentlistviewitem.cpp') diff --git a/src/documentlistviewitem.cpp b/src/documentlistviewitem.cpp index 7a71873..ce4db30 100644 --- a/src/documentlistviewitem.cpp +++ b/src/documentlistviewitem.cpp @@ -17,9 +17,9 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include -#include -#include +#include +#include +#include #include @@ -36,7 +36,7 @@ namespace KBibTeX setTexts(); } - DocumentListViewItem::DocumentListViewItem( BibTeX::File *file, BibTeX::Element *element, DocumentListView *parent, QListViewItem *after ) : KListViewItem( parent, after ), m_element( element ), m_bibtexFile( file ), m_parent( parent ) + DocumentListViewItem::DocumentListViewItem( BibTeX::File *file, BibTeX::Element *element, DocumentListView *parent, TQListViewItem *after ) : KListViewItem( parent, after ), m_element( element ), m_bibtexFile( file ), m_parent( parent ) { setTexts(); } @@ -61,7 +61,7 @@ namespace KBibTeX m_unreadStatus = unread; } - void DocumentListViewItem::paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int align ) + void DocumentListViewItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align ) { if ( !p ) return ; @@ -69,7 +69,7 @@ namespace KBibTeX // make unread items bold if ( m_unreadStatus ) { - QFont f = p->font(); + TQFont f = p->font(); f.setBold( TRUE ); p->setFont( f ); } @@ -112,7 +112,7 @@ namespace KBibTeX if ( comment ) { setText( 0, i18n( "Comment" ) ); - QString text = comment->text(); + TQString text = comment->text(); text.replace( '\n', ' ' ); setText(( int ) BibTeX::EntryField::ftTitle - ( int ) BibTeX::EntryField::ftAbstract + 2, text ); } -- cgit v1.2.3