Browse Source

#3 tastk

don't forget to manage -1 from UI.
master
pouya 3 years ago
parent
commit
9bbaa5eb9d
  1. 9
      logic/src/viewModel/bMode/display/gray/GrayMapManager.cpp

9
logic/src/viewModel/bMode/display/gray/GrayMapManager.cpp

@ -1,6 +1,7 @@
#include "viewModel/bMode/display/gray/GrayMapManager.h" #include "viewModel/bMode/display/gray/GrayMapManager.h"
#include <QRandomGenerator> #include <QRandomGenerator>
#include <QDebug>
#define GRAY_MAP_COUNT 18 #define GRAY_MAP_COUNT 18
#define USER_GRAY_MAP_COUNT 3 #define USER_GRAY_MAP_COUNT 3
@ -132,6 +133,12 @@ void GrayMapManager::saveGrayMap(int slotNumber)
/*************************************************************************************************/ /*************************************************************************************************/
void GrayMapManager::grayMapHandle() void GrayMapManager::grayMapHandle()
{ {
qDebug() << "reciving signals";
if(grayMap() == -1) {
// "-1" means that nothing is Selected and user is
// changing grayMap.
}
else {
if(isCustomGrayMapSelected()) if(isCustomGrayMapSelected())
{ {
initUserGrayMaps(false); initUserGrayMaps(false);
@ -139,6 +146,8 @@ void GrayMapManager::grayMapHandle()
auto gm = getGrayMap(grayMap()); auto gm = getGrayMap(grayMap());
currentGrayMapData(u8ListToIntList(gm->value())); currentGrayMapData(u8ListToIntList(gm->value()));
setKnobs(gm); setKnobs(gm);
}
} }
/*************************************************************************************************/ /*************************************************************************************************/

Loading…
Cancel
Save