From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/snippetitem.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kmail/snippetitem.cpp') diff --git a/kmail/snippetitem.cpp b/kmail/snippetitem.cpp index 46d28c941..206114ace 100644 --- a/kmail/snippetitem.cpp +++ b/kmail/snippetitem.cpp @@ -15,18 +15,18 @@ #include -#include +#include -SnippetItem::SnippetItem(QListView * parent, QString name, QString text ) - : QListViewItem( parent, name ), action(0) +SnippetItem::SnippetItem(TQListView * parent, TQString name, TQString text ) + : TQListViewItem( parent, name ), action(0) { strName = name; strText = text; iParent = -1; } -SnippetItem::SnippetItem(QListViewItem * parent, QString name, QString text) - : QListViewItem( parent, name ), action(0) +SnippetItem::SnippetItem(TQListViewItem * parent, TQString name, TQString text) + : TQListViewItem( parent, name ), action(0) { strName = name; strText = text; @@ -45,7 +45,7 @@ SnippetItem::~SnippetItem() /*! \fn SnippetItem::getName() */ -QString SnippetItem::getName() +TQString SnippetItem::getName() { return strName; } @@ -54,25 +54,25 @@ QString SnippetItem::getName() /*! \fn SnippetItem::getText */ -QString SnippetItem::getText() +TQString SnippetItem::getText() { return strText; } /*! - \fn SnippetItem::setText(QString text) + \fn SnippetItem::setText(TQString text) */ -void SnippetItem::setText(QString text) +void SnippetItem::setText(TQString text) { strText = text; } /*! - \fn SnippetItem::setName(QString name) + \fn SnippetItem::setName(TQString name) */ -void SnippetItem::setName(QString name) +void SnippetItem::setName(TQString name) { strName = name; } @@ -101,7 +101,7 @@ void SnippetItem::slotExecute() } -SnippetItem * SnippetItem::findItemByName(QString name, QPtrList &list) +SnippetItem * SnippetItem::findItemByName(TQString name, TQPtrList &list) { for ( SnippetItem * item = list.first(); item; item = list.next() ) { //write the snippet-list if (item->getName() == name) @@ -110,7 +110,7 @@ SnippetItem * SnippetItem::findItemByName(QString name, QPtrList &l return NULL; } -SnippetGroup * SnippetItem::findGroupById(int id, QPtrList &list) +SnippetGroup * SnippetItem::findGroupById(int id, TQPtrList &list) { for ( SnippetItem * item = list.first(); item; item = list.next() ) { //write the snippet-list SnippetGroup * group = dynamic_cast(item); @@ -127,7 +127,7 @@ Deklaration for class SnippetGroup int SnippetGroup::iMaxId = 1; -SnippetGroup::SnippetGroup(QListView * parent, QString name, int id) +SnippetGroup::SnippetGroup(TQListView * parent, TQString name, int id) : SnippetItem(parent, name, "GROUP") { if (id > 0) { -- cgit v1.2.1