Qt: Remove dead code

This commit is contained in:
Jeffrey Pfau 2015-04-28 23:49:55 -07:00
parent 328a41dec7
commit 0bc9d18bc7
2 changed files with 1 additions and 10 deletions

View File

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

View File

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