Qt: Misc minor cleanup

This commit is contained in:
Vicki Pfau 2021-02-22 18:14:21 -08:00
parent a10800d7e7
commit 06e6e1a27d
3 changed files with 4 additions and 5 deletions

View File

@ -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));

View File

@ -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;
};
}
}

View File

@ -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());
}