Commands: use dash in P/R column to show that key association is not active

pull/127/head
f4exb 2018-01-06 06:26:00 +01:00
rodzic f60f418f1b
commit 7974548a25
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -698,7 +698,7 @@ QTreeWidgetItem* MainWindow::addCommandToTree(const Command* command)
QStringList sl;
sl.append(QString("%1").arg(command->getDescription())); // Descriptions column
sl.append(QString("%1").arg(command->getAssociateKey() ? command->getRelease() ? "R" : "P" : "")); // key press/release column
sl.append(QString("%1").arg(command->getAssociateKey() ? command->getRelease() ? "R" : "P" : "-")); // key press/release column
sl.append(QString("%1").arg(command->getKeyLabel())); // key column
CommandItem* item = new CommandItem(group, sl, command->getDescription(), PItem);
item->setData(0, Qt::UserRole, qVariantFromValue(command));