mirror of https://github.com/mgba-emu/mgba.git
Qt: Misc minor cleanup
This commit is contained in:
parent
a10800d7e7
commit
06e6e1a27d
|
@ -1730,7 +1730,7 @@ void IOViewer::selectRegister(int address) {
|
|||
sbox->setAccelerated(true);
|
||||
box->addWidget(sbox, i, 1, Qt::AlignRight);
|
||||
|
||||
connect(sbox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), [sbox, this, &ri](int v) {
|
||||
connect(sbox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), [this, &ri](int v) {
|
||||
for (int o = 0; o < ri.size; ++o) {
|
||||
QSignalBlocker blocker(m_b[o + ri.start]);
|
||||
m_b[o + ri.start]->setChecked(v & (1 << o));
|
||||
|
|
|
@ -16,8 +16,8 @@ public:
|
|||
RotatedHeaderView(Qt::Orientation orientation, QWidget* parent = nullptr);
|
||||
|
||||
protected:
|
||||
void paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const;
|
||||
virtual QSize sectionSizeFromContents(int logicalIndex) const override;
|
||||
void paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const override;
|
||||
QSize sectionSizeFromContents(int logicalIndex) const override;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -200,7 +200,6 @@ void TileView::exportTile() {
|
|||
void TileView::copyTiles() {
|
||||
CoreController::Interrupter interrupter(m_controller);
|
||||
updateTiles(false);
|
||||
QPixmap pixmap();
|
||||
GBAApp::app()->clipboard()->setPixmap(m_ui.tiles->backing());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue