void Palette::mousePressEvent(QMouseEvent* ev) { dragStartPosition = ev->pos(); if (_selectable) { int i = idx(dragStartPosition); if (i == -1) return; if (i != selectedIdx) { update(idxRect(i) | idxRect(selectedIdx)); selectedIdx = i; } emit boxClicked(i); } }
void Palette::mousePressEvent(QMouseEvent* ev) { dragStartPosition = ev->pos(); dragIdx = idx(dragStartPosition); if (dragIdx == -1) return; if (_selectable) { if (dragIdx != selectedIdx) { update(idxRect(dragIdx) | idxRect(selectedIdx)); selectedIdx = dragIdx; } emit boxClicked(dragIdx); } PaletteCell* cell = cells[dragIdx]; if (cell && (cell->tag == "ShowMore")) emit displayMore(_name); }
void StoreCheckBox::originalClicked(bool state) { emit boxClicked(state, m_id); }