From 01d2611d65089430aa7ae9ba5a0cda99af94b7b9 Mon Sep 17 00:00:00 2001 From: Hane Date: Mon, 14 Aug 2023 18:00:59 +0200 Subject: [PATCH] added pdb generation, fixed unintended back call --- qtest.pro | 6 +++--- src/cont/contclasses.cpp | 4 +--- src/qt/qtclasses.cpp | 2 +- src/qt/qtclasses.h | 1 - 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/qtest.pro b/qtest.pro index d2ac80f..511e78a 100644 --- a/qtest.pro +++ b/qtest.pro @@ -1,6 +1,6 @@ -QMAKE_CXXFLAGS += --target=x86_64-w64-mingw32 -QMAKE_LINKER += clang++ -QMAKE_LFLAGS += -v +QMAKE_CXXFLAGS += --target=x86_64-w64-mingw32 -g -gcodeview +#QMAKE_LINK += clang++ +QMAKE_LFLAGS += --target=x86_64-w64-mingw32 -g -gcodeview -Wl,-pdb= -v DEFINES += DEBUG CONFIG += debug console QT += widgets diff --git a/src/cont/contclasses.cpp b/src/cont/contclasses.cpp index b7db7dc..7bca344 100644 --- a/src/cont/contclasses.cpp +++ b/src/cont/contclasses.cpp @@ -127,12 +127,10 @@ void OverseerHandler::updateMainVolumeCallback(uint64_t idx, float newVal){ void OverseerHandler::updateChannelVolumeCallback(uint64_t idx, uint32_t channel, float newVal){ //int translatedNewVal = newVal * 100; - - + log_debugcpp("chanel: " << channel << " volcallback float: " << newVal); epwChannelVolumeFunc f = &EndpointWidget::updateChannelVolume; std::invoke(f, endpointWidgets.at(idx), channel, newVal); - //TODO: Soy retrasado //endpointWidgets.at(idx)->updateChannelVolume(channel, newVal); diff --git a/src/qt/qtclasses.cpp b/src/qt/qtclasses.cpp index f6e01b4..a5d0b8a 100644 --- a/src/qt/qtclasses.cpp +++ b/src/qt/qtclasses.cpp @@ -75,7 +75,7 @@ void EndpointWidget::updateMute(bool muted){ log_debugcpp("cliqui callboqui cloqui"); //TODO: Here to diagnose slider visuals locking when playing DJ with external volume bar. Functionality is restored when mute checkbox is clicked. //this->muteButton->blockSignals(true); - this->eph->setMute(osh->getGuid(), muted); + //this->eph->setMute(osh->getGuid(), muted); this->muteButton->setChecked(eph->getMute() ? true : false); this->muteButton->setText(this->eph->getMute() ? STRING_UNMUTE : STRING_MUTE); //this->muteButton->blockSignals(false); diff --git a/src/qt/qtclasses.h b/src/qt/qtclasses.h index 21bdf0d..dc1a82a 100644 --- a/src/qt/qtclasses.h +++ b/src/qt/qtclasses.h @@ -96,7 +96,6 @@ typedef void (EndpointWidget::*epwMainVolumeFunc)(float newValue); typedef void (EndpointWidget::*epwChannelVolumeFunc)(uint32_t channel, float newValue); typedef void (EndpointWidget::*epwToggleFrontFunc)(bool active); - class MainWindow : public QMainWindow { Q_OBJECT //QWidget *centralWidget;