summaryrefslogtreecommitdiff
path: root/libjava/classpath/native/jni/qt-peer/buttonevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/native/jni/qt-peer/buttonevent.h')
-rw-r--r--libjava/classpath/native/jni/qt-peer/buttonevent.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/libjava/classpath/native/jni/qt-peer/buttonevent.h b/libjava/classpath/native/jni/qt-peer/buttonevent.h
new file mode 100644
index 000000000..aab11dd03
--- /dev/null
+++ b/libjava/classpath/native/jni/qt-peer/buttonevent.h
@@ -0,0 +1,27 @@
+#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