summaryrefslogtreecommitdiffstats
path: root/src/documentlistviewitem.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-06-29 12:56:53 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-04 03:11:35 +0200
commit5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch)
treec8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/documentlistviewitem.cpp
parent251c9a439759c830d34c70683d0fc9454d703010 (diff)
downloadkbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz
kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip
Initial TQt conversion
Diffstat (limited to 'src/documentlistviewitem.cpp')
-rw-r--r--src/documentlistviewitem.cpp14
1 files changed, 7 insertions, 7 deletions
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 <qlistview.h>
-#include <qpainter.h>
-#include <qpen.h>
+#include <ntqlistview.h>
+#include <ntqpainter.h>
+#include <ntqpen.h>
#include <klocale.h>
@@ -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 );
}