mirror of https://github.com/bsnes-emu/bsnes.git
13 lines
288 B
C++
Executable File
13 lines
288 B
C++
Executable File
void pButton::setText(const string &text) {
|
|
qtButton->setText(QString::fromUtf8(text));
|
|
}
|
|
|
|
void pButton::constructor() {
|
|
qtWidget = qtButton = new QPushButton;
|
|
connect(qtButton, SIGNAL(released()), SLOT(onTick()));
|
|
}
|
|
|
|
void pButton::onTick() {
|
|
if(button.onTick) button.onTick();
|
|
}
|