all repos — mgba @ 0bc9d18bc7b37f7c802119107c8e31a27d591669

mGBA Game Boy Advance Emulator

Qt: Remove dead code
Jeffrey Pfau jeffrey@endrift.com
Tue, 28 Apr 2015 23:49:55 -0700
commit

0bc9d18bc7b37f7c802119107c8e31a27d591669

parent

328a41dec7d2955fc9833854156430e6c21774eb

2 files changed, 1 insertions(+), 10 deletions(-)

jump to
M src/platform/qt/MemoryModel.cppsrc/platform/qt/MemoryModel.cpp

@@ -79,11 +79,3 @@ painter.drawLine(m_margins.left() - 2, 0, m_margins.left() - 2, viewport()->size().height());

painter.drawLine(viewport()->size().width() - m_margins.right(), 0, viewport()->size().width() - m_margins.right(), viewport()->size().height()); painter.drawLine(0, m_margins.top(), viewport()->size().width(), m_margins.top()); } - -QString MemoryModel::headerData(int section, Qt::Orientation orientation) const { - if (orientation == Qt::Vertical) { - return QString("%0").arg(section >> 4, 8, 16, QChar('0')).toUpper(); - } else { - return QString("%0").arg(section, 2, 16, QChar('0')).toUpper(); - } -}
M src/platform/qt/MemoryModel.hsrc/platform/qt/MemoryModel.h

@@ -27,10 +27,9 @@

protected: void resizeEvent(QResizeEvent*) override; void paintEvent(QPaintEvent*) override; + void wheelEvent(QWheelEvent*) override; private: - QString headerData(int section, Qt::Orientation orientation) const; - ARMCore* m_cpu; QFont m_font; int m_cellHeight;