From 06e6e1a27d75c5111ff81a2aeae9b3c204ca6ec1 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 22 Feb 2021 18:14:21 -0800 Subject: [PATCH] Qt: Misc minor cleanup --- src/platform/qt/IOViewer.cpp | 2 +- src/platform/qt/RotatedHeaderView.h | 6 +++--- src/platform/qt/TileView.cpp | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/platform/qt/IOViewer.cpp b/src/platform/qt/IOViewer.cpp index 07f5438fb..bba975e94 100644 --- a/src/platform/qt/IOViewer.cpp +++ b/src/platform/qt/IOViewer.cpp @@ -1730,7 +1730,7 @@ void IOViewer::selectRegister(int address) { sbox->setAccelerated(true); box->addWidget(sbox, i, 1, Qt::AlignRight); - connect(sbox, static_cast(&QSpinBox::valueChanged), [sbox, this, &ri](int v) { + connect(sbox, static_cast(&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)); diff --git a/src/platform/qt/RotatedHeaderView.h b/src/platform/qt/RotatedHeaderView.h index 47d406bb7..a2b202d6a 100644 --- a/src/platform/qt/RotatedHeaderView.h +++ b/src/platform/qt/RotatedHeaderView.h @@ -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; }; -} \ No newline at end of file +} diff --git a/src/platform/qt/TileView.cpp b/src/platform/qt/TileView.cpp index 0ac16d2ae..1c16b79c6 100644 --- a/src/platform/qt/TileView.cpp +++ b/src/platform/qt/TileView.cpp @@ -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()); }