27 #include "tagaction.h"
29 #include <tdeapplication.h>
31 #include <tdepopupmenu.h>
34 #include <tqpopupmenu.h>
39 class TagAction::TagActionPrivate
47 TagAction::TagAction( const Tag& tag, const TQObject *receiver, const char *slot, TQObject *parent)
49 : TDEToggleAction(tag.name(), TDEShortcut(), 0, 0, parent), d(new TagActionPrivate)
52 connect( this, TQ_SIGNAL(toggled( const Tag&, bool)), receiver, slot);
53 connect( this, TQ_SIGNAL(toggled( bool)), this, TQ_SLOT(slotToggled( bool)));
56 TagAction::~TagAction()
62 Tag TagAction::tag() const
107 void TagAction::slotToggled( bool enabled)
109 emit toggled(d->tag, enabled);
114 #include "tagaction.moc"
|