void TagColorEditor::cellClicked(int row, int col) { int index = row*2 + col; uchar *colors = Global::tagColors(); QTableWidgetItem *item = table->item(row, col); if (item->checkState() == Qt::Checked) colors[4*index+3] = 255; else colors[4*index+3] = 0; emit tagSelected(index); }
void TagColorEditor::cellClicked(int row, int col) { if (row == 0 && col > 0) return; //int index = row*8 + col; int index = 0; if (row > 0) index = 1 + (row-1)*5 + col; uchar *colors = Global::tagColors(); QTableWidgetItem *item = table->item(row, col); if (item->checkState() == Qt::Checked) colors[4*index+3] = 255; else colors[4*index+3] = 0; emit tagSelected(index); }
void LogDialog::tagBSelected(int n) { if (n) tagSelected(tags.at(n-1), true); }
void LogDialog::tagASelected(int n) { if (n) tagSelected(tags.at(n-1), false); }