• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • kopete
  • config
  • chatwindow
emoticonthemeitem.cpp
Go to the documentation of this file.
1 /*
2  emoticonthemeitem - Kopete Emoticon Theme Item
3 
4  Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
5 
6  Kopete (c) 2007 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 
18 #include "emoticonthemeitem.h"
19 
20 #include <kopeteemoticons.h>
21 #include <kemoticons.h>
22 
23 EmoticonThemeItem::EmoticonThemeItem(const QString &theme)
24 : QListWidgetItem(theme, 0, UserType)
25 {
26  // list the theme
27  KEmoticonsTheme emoticons = Kopete::Emoticons::self()->theme( theme );
28  setData(EmoticonList, QStringList(emoticons.emoticonsMap().keys()));
29 
30  // set the emoticon pixmap list as an empty list: pixmaps will be added to
31  // the list as they are rendered by the delegator
32  setData(EmoticonPixmaps, QList<QVariant>());
33 }
EmoticonThemeItem::EmoticonPixmaps
Definition: emoticonthemeitem.h:31
QListWidgetItem
EmoticonThemeItem::EmoticonList
Definition: emoticonthemeitem.h:30
EmoticonThemeItem::EmoticonThemeItem
EmoticonThemeItem(const QString &theme)
Definition: emoticonthemeitem.cpp:23
QString
QList
emoticonthemeitem.h
QStringList
QListWidgetItem::setData
virtual void setData(int role, const QVariant &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal