From eb99a64b29da705246ec4b4bef15e3c4e65c3a69 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 15 Apr 2021 22:20:34 -0400 Subject: [PATCH] Adds new Spectrum models to Qt UI. --- OSBindings/Qt/mainwindow.cpp | 10 +++++++--- OSBindings/Qt/mainwindow.ui | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/OSBindings/Qt/mainwindow.cpp b/OSBindings/Qt/mainwindow.cpp index 630bff4a6..6836844f1 100644 --- a/OSBindings/Qt/mainwindow.cpp +++ b/OSBindings/Qt/mainwindow.cpp @@ -1258,9 +1258,13 @@ void MainWindow::start_spectrum() { using Target = Analyser::Static::ZXSpectrum::Target; auto target = std::make_unique(); - switch(ui->oricModelComboBox->currentIndex()) { - default: target->model = Target::Model::Plus2a; break; - case 1: target->model = Target::Model::Plus3; break; + switch(ui->spectrumModelComboBox->currentIndex()) { + default: target->model = Target::Model::SixteenK; break; + case 1: target->model = Target::Model::FortyEightK; break; + case 2: target->model = Target::Model::OneTwoEightK; break; + case 3: target->model = Target::Model::Plus2; break; + case 4: target->model = Target::Model::Plus2a; break; + case 5: target->model = Target::Model::Plus3; break; } launchTarget(std::move(target)); diff --git a/OSBindings/Qt/mainwindow.ui b/OSBindings/Qt/mainwindow.ui index 95a835436..4e576e4c3 100644 --- a/OSBindings/Qt/mainwindow.ui +++ b/OSBindings/Qt/mainwindow.ui @@ -551,6 +551,26 @@ + + + 16kb + + + + + 48kb + + + + + 128kb + + + + + +2 + + +2a