Replaced Custom Switches with Logical Switches and LS in Companion UI.

Replaced Custom Functions with Switch Assignment in the Companion UI.
This commit is contained in:
Dvogonen
2014-01-24 23:24:53 +01:00
parent bf8e74b266
commit f89fc9a9ae
5 changed files with 12 additions and 23 deletions
+2 -2
View File
@@ -29,9 +29,9 @@ CustomSwitchesPanel::CustomSwitchesPanel(QWidget * parent, ModelData & model):
QLabel * label = new QLabel(this);
label->setProperty("index", i);
if (i < 9)
label->setText(tr("CS%1").arg(i+1));
label->setText(tr("LS%1").arg(i+1));
else
label->setText(tr("CS%1").arg(QChar('A'+i-9)));
label->setText(tr("LS%1").arg(QChar('A'+i-9)));
label->setContextMenuPolicy(Qt::CustomContextMenu);
label->setMouseTracking(true);
connect(label, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(csw_customContextMenuRequested(QPoint)));