diff --git a/src/platform/qt/MemoryModel.cpp b/src/platform/qt/MemoryModel.cpp index a85acd1ae..fd885b1bb 100644 --- a/src/platform/qt/MemoryModel.cpp +++ b/src/platform/qt/MemoryModel.cpp @@ -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(); - } -} diff --git a/src/platform/qt/MemoryModel.h b/src/platform/qt/MemoryModel.h index 7ed3a2d90..65a2279c8 100644 --- a/src/platform/qt/MemoryModel.h +++ b/src/platform/qt/MemoryModel.h @@ -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;