summaryrefslogtreecommitdiff
path: root/native/jni/qt-peer/buttonevent.h
blob: aab11dd039f45a5d609079778d9d6abb32fb1677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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