1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-25 22:36:34 -04:00

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

This commit is contained in:
f4exb 2018-01-06 06:26:00 +01:00
parent f60f418f1b
commit 7974548a25

View File

@ -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));