Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
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);
}
Exemplo n.º 3
0
void LogDialog::tagBSelected(int n)
{
    if (n)
        tagSelected(tags.at(n-1), true);
}
Exemplo n.º 4
0
void LogDialog::tagASelected(int n)
{
    if (n)
        tagSelected(tags.at(n-1), false);
}