mirror of https://github.com/bsnes-emu/bsnes.git
14 lines
497 B
C++
Executable File
14 lines
497 B
C++
Executable File
void Button::create(Window &parent, unsigned x, unsigned y, unsigned width, unsigned height, const string &text) {
|
|
button->setParent(parent.window->container);
|
|
button->setGeometry(x, y, width, height);
|
|
button->setText(QString::fromUtf8(text));
|
|
if(parent.window->defaultFont) button->setFont(*parent.window->defaultFont);
|
|
button->show();
|
|
button->connect(button, SIGNAL(released()), SLOT(onTick()));
|
|
}
|
|
|
|
Button::Button() {
|
|
button = new Button::Data(*this);
|
|
widget->widget = button;
|
|
}
|