From 3f84e093be6e304252885d3afc1bbe6ecd48e804 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Mon, 17 Oct 2022 00:29:11 +0100 Subject: [PATCH] Remove buttons that no longer exist from Shuttle --- shuttlesetup.cpp | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/shuttlesetup.cpp b/shuttlesetup.cpp index 28d01e5..4617cdb 100644 --- a/shuttlesetup.cpp +++ b/shuttlesetup.cpp @@ -12,6 +12,7 @@ shuttleSetup::shuttleSetup(QWidget* parent) : ui->graphicsView->setScene(scene); textItem = scene->addText("No USB controller found"); textItem->setDefaultTextColor(Qt::gray); + this->resize(this->sizeHint()); connect(&onEvent, SIGNAL(currentIndexChanged(int)), this, SLOT(onEventIndexChanged(int))); connect(&offEvent, SIGNAL(currentIndexChanged(int)), this, SLOT(offEventIndexChanged(int))); @@ -92,7 +93,16 @@ void shuttleSetup::newDevice(unsigned char devType, QVector