From 3442b5fdeb4f8dfef38977078c5c6e801dcc2b51 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 13 Feb 2019 21:59:29 +0100 Subject: Implemented three dials equivalent to MZ_APO RGB dials. Tested with code compiled by Linux PIC based GCC compiler with calling musl-libc sprintf function. Signed-off-by: Pavel Pisa --- qtmips_gui/peripheralsdock.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'qtmips_gui/peripheralsdock.cpp') diff --git a/qtmips_gui/peripheralsdock.cpp b/qtmips_gui/peripheralsdock.cpp index ad423a0..4494948 100644 --- a/qtmips_gui/peripheralsdock.cpp +++ b/qtmips_gui/peripheralsdock.cpp @@ -39,11 +39,13 @@ PeripheralsDock::PeripheralsDock(QWidget *parent, QSettings *settings) : QDockWi top_widget = new QWidget(this); setWidget(top_widget); layout_box = new QVBoxLayout(top_widget); + periph_view = new PeripheralsView(0); + layout_box->addWidget(periph_view); setObjectName("Peripherals"); setWindowTitle("Peripherals"); } -void PeripheralsDock::setup(const machine::QtMipsMachine *machine) { - +void PeripheralsDock::setup(const machine::PeripSpiLed *perip_spi_led) { + periph_view->setup(perip_spi_led); } -- cgit v1.2.3