MCPcopy Create free account
hub / github.com/ccMSC/ckb / modeIcon

Method modeIcon

src/ckb/kbwidget.cpp:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127QIcon 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
136void KbWidget::addNewModeItem(){
137 // Add an item for creating a new mode. Make it editable but not dragable.

Callers

nothing calls this directly

Calls 2

currentProfileMethod · 0.80
hwProfileMethod · 0.45

Tested by

no test coverage detected