| 101 | } |
| 102 | |
| 103 | void VisualizerDisplayWidget::setConfig(float bppstep, int w, int h, uint32_t u, uint32_t c, bool g, uint32_t *d, uint32_t *e) { |
| 104 | m_bppstep = bppstep; |
| 105 | m_width = w; |
| 106 | m_height = h; |
| 107 | m_upbase = u; |
| 108 | m_control = c; |
| 109 | m_data = d; |
| 110 | m_data_end = e; |
| 111 | m_size = w * h; |
| 112 | m_grid = g; |
| 113 | delete m_image; |
| 114 | m_image = new QImage(w, h, QImage::Format_RGB32); |
| 115 | } |
| 116 | |
| 117 | void VisualizerDisplayWidget::contextMenu(const QPoint& posa) { |
| 118 | QString copyStr = tr("Copy Address"); |