mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-11 09:44:07 +02:00
v108.1
* added CPU and SA1 overclocking support * added fast forward speed limiting * added option to mute during fast forwarding and rewinding * lowered volume when not muting during FF/rewind * reformatted settings/tools windows from tabs to lists * moved focus settings to input settings panel * redesigned input and hotkey settings panels to be easier to use * fixed offscreen placement issue with path settings panel * added hotkey combinational logic option (AND / OR mode setting) * added search support to file browser dialog * fixed --fullscreen command-line option
This commit is contained in:
@@ -17,7 +17,7 @@ auto pTableView::construct() -> void {
|
||||
qtTableViewDelegate = new QtTableViewDelegate(*this);
|
||||
qtTableView->setItemDelegate(qtTableViewDelegate);
|
||||
|
||||
qtTableView->connect(qtTableView, SIGNAL(itemActivated(QTreeWidgetItem*, int)), SLOT(onActivate()));
|
||||
qtTableView->connect(qtTableView, SIGNAL(itemActivated(QTreeWidgetItem*, int)), SLOT(onActivate(QTreeWidgetItem*, int)));
|
||||
qtTableView->connect(qtTableView, SIGNAL(itemSelectionChanged()), SLOT(onChange()));
|
||||
qtTableView->connect(qtTableView, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(onContext()));
|
||||
qtTableView->connect(qtTableView->header(), SIGNAL(sectionClicked(int)), SLOT(onSort(int)));
|
||||
@@ -186,8 +186,20 @@ auto pTableView::_widthOfCell(unsigned _row, unsigned _column) -> unsigned {
|
||||
return width;
|
||||
}
|
||||
|
||||
auto QtTableView::onActivate() -> void {
|
||||
if(!p.locked()) p.self().doActivate();
|
||||
auto QtTableView::onActivate(QTreeWidgetItem* qtItem, int column) -> void {
|
||||
if(p.locked()) return;
|
||||
|
||||
for(auto& item : p.state().items) {
|
||||
if(auto self = item->self()) {
|
||||
if(qtItem == self->qtItem) {
|
||||
if(auto cell = item->cell(column)) {
|
||||
return p.self().doActivate(cell);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p.self().doActivate({});
|
||||
}
|
||||
|
||||
auto QtTableView::onChange() -> void {
|
||||
|
Reference in New Issue
Block a user