kopete/kopete
emoticonthemeitem.cpp
Go to the documentation of this file.00001 /* 00002 emoticonthemeitem - Kopete Emoticon Theme Item 00003 00004 Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net> 00005 00006 Kopete (c) 2007 by the Kopete developers <kopete-devel@kde.org> 00007 00008 ************************************************************************* 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ************************************************************************* 00016 */ 00017 00018 #include "emoticonthemeitem.h" 00019 00020 #include <kopeteemoticons.h> 00021 00022 EmoticonThemeItem::EmoticonThemeItem(const QString &theme) 00023 : QListWidgetItem(theme, 0, UserType) 00024 { 00025 // list the theme 00026 Kopete::Emoticons emoticons( theme ); 00027 setData(EmoticonList, QStringList(emoticons.emoticonAndPicList().keys())); 00028 00029 // set the emoticon pixmap list as an empty list: pixmaps will be added to 00030 // the list as they are rendered by the delegator 00031 setData(EmoticonPixmaps, QList<QVariant>()); 00032 }
KDE 4.0 API Reference