KPIMTextedit Library
20 #include "emoticontexteditaction.h"
21 #include "emoticontexteditselector.h"
23 #include <KLocalizedString>
27 #include <QWidgetAction>
29 using namespace KPIMTextEdit;
31 class EmoticonTextEditAction::EmoticonTextEditActionPrivate
34 EmoticonTextEditActionPrivate()
36 emoticonMenu =
new KMenu();
37 selector =
new EmoticonTextEditSelector( emoticonMenu );
40 emoticonMenu->addAction( action );
41 connect( emoticonMenu, SIGNAL(aboutToShow()), selector, SLOT(slotCreateEmoticonList()) );
44 ~EmoticonTextEditActionPrivate()
50 EmoticonTextEditSelector *selector;
53 EmoticonTextEditAction::EmoticonTextEditAction(
QObject *parent )
54 : KActionMenu( i18n(
"Add Smiley" ), parent ), d( new EmoticonTextEditActionPrivate() )
56 setMenu( d->emoticonMenu );
58 setShortcutConfigurable(
false );
60 connect( d->selector, SIGNAL(itemSelected(
QString)),
61 this, SIGNAL(emoticonActivated(
QString)) );
64 EmoticonTextEditAction::~EmoticonTextEditAction()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:23 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.