mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Commands: use dash in P/R column to show that key association is not active
This commit is contained in:
parent
f60f418f1b
commit
7974548a25
@ -698,7 +698,7 @@ QTreeWidgetItem* MainWindow::addCommandToTree(const Command* command)
|
|||||||
|
|
||||||
QStringList sl;
|
QStringList sl;
|
||||||
sl.append(QString("%1").arg(command->getDescription())); // Descriptions column
|
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
|
sl.append(QString("%1").arg(command->getKeyLabel())); // key column
|
||||||
CommandItem* item = new CommandItem(group, sl, command->getDescription(), PItem);
|
CommandItem* item = new CommandItem(group, sl, command->getDescription(), PItem);
|
||||||
item->setData(0, Qt::UserRole, qVariantFromValue(command));
|
item->setData(0, Qt::UserRole, qVariantFromValue(command));
|
||||||
|
Loading…
Reference in New Issue
Block a user