bsnes/snespurify/phoenix/qt/action/item.cpp

13 lines
267 B
C++
Executable File

void pItem::setText(const string &text) {
qtAction->setText(QString::fromUtf8(text));
}
void pItem::constructor() {
qtAction = new QAction(0);
connect(qtAction, SIGNAL(triggered()), SLOT(onTick()));
}
void pItem::onTick() {
if(item.onTick) item.onTick();
}