2010-09-17 16:53:33 +02:00
|
|
|
#ifndef %ObjectName:u%_H
|
|
|
|
|
#define %ObjectName:u%_H
|
2010-03-19 13:52:16 +01:00
|
|
|
|
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
#include <QtCore/QString>
|
|
|
|
|
#include <QtCore/QTimer>
|
|
|
|
|
|
|
|
|
|
class %ObjectName% : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
%ObjectName%(QObject *parent = 0);
|
|
|
|
|
|
|
|
|
|
QString text() const;
|
|
|
|
|
void setText(const QString &text);
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void textChanged(const QString &newText);
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void timerFired();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QString theText;
|
|
|
|
|
QTimer *timer;
|
|
|
|
|
|
|
|
|
|
Q_DISABLE_COPY(%ObjectName%)
|
|
|
|
|
};
|
|
|
|
|
|
2010-09-17 16:53:33 +02:00
|
|
|
#endif // %ObjectName:u%_H
|