mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-15 10:04:54 +02:00
Update to bsnes v107r4 beta release.
byuu says: - bsnes: added video filters from bsnes v082 - bsnes: added ZSNES snow effect option when games paused or unloaded (no, I'm not joking) - bsnes: added 7-zip support (LZMA 19.00 SDK) [Recent higan WIPs have also mentioned bsnes changes, although the higan code no longer includes the bsnes code. These changes include: - higan, bsnes: added EXLOROM, EXLOROM-RAM, EXHIROM mappings - higan, bsnes: focus the viewport after leaving fullscreen exclusive mode - bsnes: re-added mightymo's cheat code database - bsnes: improved make install rules for the game and cheat code databases - bsnes: delayed construction of hiro::Window objects to properly show bsnes window icons - Ed.]
This commit is contained in:
@@ -25,8 +25,11 @@ auto pWidget::construct() -> void {
|
||||
qtWidget->setParent(container);
|
||||
}
|
||||
|
||||
setDroppable(self().droppable());
|
||||
setEnabled(self().enabled(true));
|
||||
setFocusable(self().focusable());
|
||||
setFont(self().font(true));
|
||||
setMouseCursor(self().mouseCursor());
|
||||
setToolTip(self().toolTip());
|
||||
setVisible(self().visible(true));
|
||||
}
|
||||
@@ -39,11 +42,19 @@ auto pWidget::focused() const -> bool {
|
||||
return qtWidget->hasFocus();
|
||||
}
|
||||
|
||||
auto pWidget::setDroppable(bool droppable) -> void {
|
||||
//virtual overload, implemented on a per-widget basis
|
||||
}
|
||||
|
||||
auto pWidget::setEnabled(bool enabled) -> void {
|
||||
if(!qtWidget) return;
|
||||
qtWidget->setEnabled(enabled);
|
||||
}
|
||||
|
||||
auto pWidget::setFocusable(bool focusable) -> void {
|
||||
//virtual overload, implemented on a per-widget basis
|
||||
}
|
||||
|
||||
auto pWidget::setFocused() -> void {
|
||||
if(!qtWidget) return;
|
||||
qtWidget->setFocus(Qt::OtherFocusReason);
|
||||
@@ -60,6 +71,14 @@ auto pWidget::setGeometry(Geometry geometry) -> void {
|
||||
pSizable::setGeometry(geometry);
|
||||
}
|
||||
|
||||
auto pWidget::setMouseCursor(const MouseCursor& mouseCursor) -> void {
|
||||
auto cursorID = Qt::ArrowCursor;
|
||||
if(mouseCursor.name() == MouseCursor::Hand) cursorID = Qt::PointingHandCursor;
|
||||
if(mouseCursor.name() == MouseCursor::HorizontalResize) cursorID = Qt::SizeHorCursor;
|
||||
if(mouseCursor.name() == MouseCursor::VerticalResize) cursorID = Qt::SizeVerCursor;
|
||||
qtWidget->setCursor(cursorID);
|
||||
}
|
||||
|
||||
auto pWidget::setToolTip(const string& toolTip) -> void {
|
||||
if(!qtWidget) return;
|
||||
qtWidget->setToolTip(QString::fromUtf8(toolTip));
|
||||
|
Reference in New Issue
Block a user