mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 05:51:04 +00:00
28 lines
407 B
C++
28 lines
407 B
C++
#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
|