Qt: Remove dead code
Jeffrey Pfau jeffrey@endrift.com
Tue, 28 Apr 2015 23:49:55 -0700
2 files changed,
1 insertions(+),
10 deletions(-)
M
src/platform/qt/MemoryModel.cpp
→
src/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.h
→
src/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;