void ColorGridView::initContextMenu() { menu.addAction(tr("Pick"), this,SLOT(colorPicked())); menu.addAction(tr("Drop From Wheel"),this,SLOT(colorDroped())); menu.addAction(tr("Clear"),this,SLOT(colorCleared())); menu.addAction(tr("Cancel")); connect(&menu,SIGNAL(aboutToHide()),this,SLOT(repaint())); }
void ColorGridItem::onColorDroped() { emit colorDroped(this->gridId_); }