mirror of https://github.com/mgba-emu/mgba.git
Qt: Remove dead code
This commit is contained in:
parent
328a41dec7
commit
0bc9d18bc7
|
@ -79,11 +79,3 @@ void MemoryModel::paintEvent(QPaintEvent* event) {
|
|||
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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,10 +27,9 @@ public:
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue