Retro68/gcc/libjava/classpath/native/jni/qt-peer/buttonevent.h

28 lines
407 B
C
Raw Normal View History

2012-03-27 23:13:14 +00:00
#ifndef BUTTONEVENT_H
#define BUTTONEVENT_H
#include <QAbstractButton>
#include "mainthreadinterface.h"
class AWTLabelEvent : public AWTEvent {
private:
QAbstractButton *widget;
QString *string;
public:
AWTLabelEvent(QAbstractButton *w, QString *s) : AWTEvent()
{
widget = w;
string = s;
}
void runEvent()
{
widget->setText( *string );
delete string;
}
};
#endif