mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-10-04 15:41:58 +02:00
byuu says: - phoenix/All: converted all instances of const char* to const nall::string& - above used to require: label.setText(string("FPS: ", fps)); but can now use: label.setText({"FPS", fps}); - also avoids the need for the internal implementations to have to check for null string pointers - phoenix/GTK+: no longer disabling double buffering on the viewport. Does not cause flickering, and fixes redraw issue on window resize - phoenix/Qt: like phoenix/GTK+, it will use the default font on the menubar as well, so child menu items are consistently sized now - Linux: file browser can list contents of / and won't let you go higher; Windows needs a similar guard for n:/ or \\ - UPS soft-patching support added - external XML memory map loading support added - cartridge folder support added: if folder ends in .sfc and there is ONE .sfc ROM inside it, it will load the folder as if it were a ROM - input assignment refreshes text instead of reloading the list, this saves your position - auto-advance wasn't working very well, will try again later - input clear all button removed since it's pretty fast now to do clear+down:repeat
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;
|
|
}
|