diff options
Diffstat (limited to 'parts/snippet/snippetitem.cpp')
-rw-r--r-- | parts/snippet/snippetitem.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/parts/snippet/snippetitem.cpp b/parts/snippet/snippetitem.cpp index 7548ad16..e2f08a2b 100644 --- a/parts/snippet/snippetitem.cpp +++ b/parts/snippet/snippetitem.cpp @@ -6,21 +6,21 @@ * Copyright: See COPYING file that comes with this distribution */ -#include <qstring.h> +#include <tqstring.h> #include "snippetitem.h" -SnippetItem::SnippetItem(QListView * parent, QString name, QString text ) - : QListViewItem( parent, name ) +SnippetItem::SnippetItem(TQListView * parent, TQString name, TQString text ) + : TQListViewItem( parent, name ) { strName = name; strText = text; iParent = -1; } -SnippetItem::SnippetItem(QListViewItem * parent, QString name, QString text) - : QListViewItem( parent, name ) +SnippetItem::SnippetItem(TQListViewItem * parent, TQString name, TQString text) + : TQListViewItem( parent, name ) { strName = name; strText = text; @@ -35,7 +35,7 @@ SnippetItem::~SnippetItem() /*! \fn SnippetItem::getName() */ -QString SnippetItem::getName() +TQString SnippetItem::getName() { return strName; } @@ -44,25 +44,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; } @@ -74,7 +74,7 @@ void SnippetItem::resetParent() iParent = group->getId(); } -SnippetItem * SnippetItem::findItemByName(QString name, QPtrList<SnippetItem> &list) +SnippetItem * SnippetItem::findItemByName(TQString name, TQPtrList<SnippetItem> &list) { for ( SnippetItem * item = list.first(); item; item = list.next() ) { //write the snippet-list if (item->getName() == name) @@ -83,7 +83,7 @@ SnippetItem * SnippetItem::findItemByName(QString name, QPtrList<SnippetItem> &l return NULL; } -SnippetGroup * SnippetItem::findGroupById(int id, QPtrList<SnippetItem> &list) +SnippetGroup * SnippetItem::findGroupById(int id, TQPtrList<SnippetItem> &list) { for ( SnippetItem * item = list.first(); item; item = list.next() ) { //write the snippet-list SnippetGroup * group = dynamic_cast<SnippetGroup*>(item); @@ -100,7 +100,7 @@ Deklaration for class SnippetGroup int SnippetGroup::iMaxId = 1; -SnippetGroup::SnippetGroup(QListView * parent, QString name, int id, QString lang) +SnippetGroup::SnippetGroup(TQListView * parent, TQString name, int id, TQString lang) : SnippetItem(parent, name, "GROUP") { if (id > 0) { |