00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <QAction>
00023
00024 #ifndef DOXYGEN_IGNORE_THIS
00025
00026 class InsertAction: public QAction
00027 {
00028 Q_OBJECT
00029
00030 public:
00031 InsertAction(const QString &text, QObject *parent): QAction(text, parent) { connect(this, SIGNAL(triggered()), this, SLOT(namedTrigger())); }
00032
00033 public slots:
00034 void namedTrigger() { emit triggered(text()); }
00035
00036 signals:
00037 void triggered(QString);
00038 };
00039
00040 #endif