| 52 | }; |
| 53 | |
| 54 | GrabWidget::GrabWidget(int id, QWidget *parent) : |
| 55 | QWidget(parent), |
| 56 | ui(new Ui::GrabWidget) |
| 57 | { |
| 58 | DEBUG_LOW_LEVEL << Q_FUNC_INFO << id; |
| 59 | |
| 60 | ui->setupUi(this); |
| 61 | |
| 62 | // Button image size 24x24 px |
| 63 | ui->button_OpenConfig->setFixedSize(24, 24); |
| 64 | |
| 65 | m_selfId = id; |
| 66 | m_selfIdString = QString::number(m_selfId + 1); |
| 67 | |
| 68 | m_configWidget = new GrabConfigWidget(); |
| 69 | |
| 70 | setCursorOnAll(Qt::OpenHandCursor); |
| 71 | setWindowFlags(Qt::FramelessWindowHint | Qt::ToolTip); |
| 72 | setFocusPolicy(Qt::NoFocus); |
| 73 | |
| 74 | setMouseTracking(true); |
| 75 | |
| 76 | settingsProfileChanged(); |
| 77 | |
| 78 | fillBackgroundColored(); |
| 79 | |
| 80 | connect(m_configWidget, SIGNAL(isAreaEnabled_Toggled(bool)), this, SLOT(onIsAreaEnabled_Toggled(bool))); |
| 81 | connect(m_configWidget, SIGNAL(coefRed_ValueChanged(double)), this, SLOT(onRedCoef_ValueChanged(double))); |
| 82 | connect(m_configWidget, SIGNAL(coefGreen_ValueChanged(double)), this, SLOT(onGreenCoef_ValueChanged(double))); |
| 83 | connect(m_configWidget, SIGNAL(coefBlue_ValueChanged(double)), this, SLOT(onBlueCoef_ValueChanged(double))); |
| 84 | connect(ui->button_OpenConfig, SIGNAL(clicked()), this, SLOT(onOpenConfigButton_Clicked())); |
| 85 | } |
| 86 | |
| 87 | GrabWidget::~GrabWidget() |
| 88 | { |
nothing calls this directly
no outgoing calls
no test coverage detected