diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -138,7 +138,6 @@ viewer/topiclabel.cpp viewer/awaylabel.cpp viewer/editnotifydialog.cpp - viewer/emoticons.cpp viewer/images.cpp viewer/quickbutton.cpp viewer/searchbar.cpp @@ -224,7 +223,6 @@ KF5::Bookmarks KF5::ConfigWidgets KF5::Crash - KF5::Emoticons KF5::I18n KF5::IdleTime KF5::NotifyConfig diff --git a/src/config/konversation.kcfg b/src/config/konversation.kcfg --- a/src/config/konversation.kcfg +++ b/src/config/konversation.kcfg @@ -844,14 +844,6 @@ - - false - - - - Default - - diff --git a/src/viewer/emoticons.h b/src/viewer/emoticons.h deleted file mode 100644 --- a/src/viewer/emoticons.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - Copyright (C) 2005 Peter Simonsson - Copyright (C) 2008 Modestas Vainius -*/ - -/* - Based on kopeteemoticons.cpp (as of KDE 4.2) - Kopete Preferences Container-Class - - Copyright (C) 2002-2005 by the Kopete developers - Copyright (C) 2002 Stefan Gehn - Copyright (C) 2002-2006 Olivier Goffart - Copyright (C) 2005 Engin Aydogan -*/ - -#ifndef KONVERSATIONEMOTICONS_H -#define KONVERSATIONEMOTICONS_H - -#include - -namespace Konversation { - - class Emoticons - { - public: - /** - * The emoticons container-class by default is a singleton object. - * Use this method to retrieve the instance. - */ - static KEmoticons *self(); - - static QString parseEmoticons(const QString &text, KEmoticonsTheme::ParseMode mode = KEmoticonsTheme::DefaultParse, const QStringList &exclude = QStringList()); - }; - -} //END namespace Konversation - -#endif diff --git a/src/viewer/emoticons.cpp b/src/viewer/emoticons.cpp deleted file mode 100644 --- a/src/viewer/emoticons.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - -*/ - -/* - Based on kopeteemoticons.cpp (as of KDE 4.2) - Kopete Preferences Container-Class - - Copyright (C) 2002-2005 by the Kopete developers - Copyright (C) 2002 Stefan Gehn - Copyright (C) 2002-2006 Olivier Goffart - Copyright (C) 2005 Engin Aydogan - Copyright (C) 2005 Peter Simonsson - Copyright (C) 2008 Modestas Vainius -*/ - -#include "emoticons.h" -#include "config/preferences.h" - -namespace Konversation -{ - - Q_GLOBAL_STATIC(KEmoticons, s_self) - - KEmoticons *Emoticons::self() - { - return s_self; - } - - QString Emoticons::parseEmoticons(const QString &text, KEmoticonsTheme::ParseMode mode, const QStringList &exclude) - { - // Disable emoticons support until IRCView supports them - if (Preferences::self()->enableEmotIcons()) - { - return Konversation::Emoticons::self()->theme().parseEmoticons(text, mode, exclude); - } - else - { - return text; - } - } -} diff --git a/src/viewer/ircview.cpp b/src/viewer/ircview.cpp --- a/src/viewer/ircview.cpp +++ b/src/viewer/ircview.cpp @@ -20,7 +20,6 @@ #include "application.h" #include "highlight.h" #include "sound.h" -#include "emoticons.h" #include "notificationhandler.h" #include @@ -1214,8 +1213,6 @@ QLatin1String("\">") + filteredLine + QLatin1String(""); } - filteredLine = Konversation::Emoticons::parseEmoticons(filteredLine); - return filteredLine; }