snippetitem.cpp
Go to the documentation of this file.00001 /* 00002 * File : snippetitem.cpp 00003 * 00004 * Author: Robert Gruber <rgruber@users.sourceforge.net> 00005 * 00006 * Copyright: See COPYING file that comes with this distribution 00007 */ 00008 00009 #include <qstring.h> 00010 00011 00012 #include "snippetitem.h" 00013 00014 SnippetItem::SnippetItem( QListView * parent, QString name, QString text ) 00015 : QListViewItem( parent, name ) 00016 { 00017 strName = name; 00018 strText = text; 00019 } 00020 00021 00022 SnippetItem::~SnippetItem() 00023 { 00024 } 00025 00026 00030 QString SnippetItem::getName() 00031 { 00032 return strName; 00033 } 00034 00035 00039 QString SnippetItem::getText() 00040 { 00041 return strText; 00042 } 00043 00044 00048 void SnippetItem::setText(QString text) 00049 { 00050 strText = text; 00051 } 00052 00053 00057 void SnippetItem::setName(QString name) 00058 { 00059 strName = name; 00060 }