| 125 | } |
| 126 | |
| 127 | QIcon KbWidget::modeIcon(int i){ |
| 128 | KbProfile* currentProfile = device->currentProfile(), *hwProfile = device->hwProfile(); |
| 129 | int hwModeCount = device->hwModeCount; |
| 130 | if(i >= hwModeCount) |
| 131 | return QIcon(":/img/icon_mode.png"); |
| 132 | else |
| 133 | return QIcon(QString(currentProfile == hwProfile ? ":/img/icon_mode%1_hardware.png" : ":/img/icon_mode%1.png").arg(i + 1)); |
| 134 | } |
| 135 | |
| 136 | void KbWidget::addNewModeItem(){ |
| 137 | // Add an item for creating a new mode. Make it editable but not dragable. |
nothing calls this directly
no test coverage detected