Qt: Misc minor cleanup
Vicki Pfau vi@endrift.com
Mon, 22 Feb 2021 18:14:21 -0800
3 files changed,
4 insertions(+),
5 deletions(-)
M
src/platform/qt/IOViewer.cpp
→
src/platform/qt/IOViewer.cpp
@@ -1730,7 +1730,7 @@ sbox->setMaximum((1 << ri.size) - 1);
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));
M
src/platform/qt/RotatedHeaderView.h
→
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; }; -}+}
M
src/platform/qt/TileView.cpp
→
src/platform/qt/TileView.cpp
@@ -200,7 +200,6 @@
void TileView::copyTiles() { CoreController::Interrupter interrupter(m_controller); updateTiles(false); - QPixmap pixmap(); GBAApp::app()->clipboard()->setPixmap(m_ui.tiles->backing()); }