Remove unused slider
This commit is contained in:
@@ -182,15 +182,6 @@ CustomFunctionsPanel::CustomFunctionsPanel(QWidget * parent, ModelData * model,
|
|||||||
connect(fswtchParamArmT[i], SIGNAL(currentIndexChanged(int)), this, SLOT(customFunctionEdited()));
|
connect(fswtchParamArmT[i], SIGNAL(currentIndexChanged(int)), this, SLOT(customFunctionEdited()));
|
||||||
connect(fswtchParamArmT[i], SIGNAL(editTextChanged ( const QString)), this, SLOT(customFunctionEdited()));
|
connect(fswtchParamArmT[i], SIGNAL(editTextChanged ( const QString)), this, SLOT(customFunctionEdited()));
|
||||||
|
|
||||||
fswtchBLcolor[i] = new QSlider(this);
|
|
||||||
fswtchBLcolor[i]->setProperty("index", i);
|
|
||||||
fswtchBLcolor[i]->setMinimum(0);
|
|
||||||
fswtchBLcolor[i]->setMaximum(100);
|
|
||||||
fswtchBLcolor[i]->setSingleStep(1);
|
|
||||||
fswtchBLcolor[i]->setOrientation(Qt::Horizontal);
|
|
||||||
paramLayout->addWidget(fswtchBLcolor[i]);
|
|
||||||
connect(fswtchBLcolor[i], SIGNAL(sliderReleased()), this, SLOT(customFunctionEdited()));
|
|
||||||
|
|
||||||
playBT[i] = new QToolButton(this);
|
playBT[i] = new QToolButton(this);
|
||||||
playBT[i]->setProperty("index", i);
|
playBT[i]->setProperty("index", i);
|
||||||
playBT[i]->setIcon(playIcon);
|
playBT[i]->setIcon(playIcon);
|
||||||
@@ -310,7 +301,6 @@ void CustomFunctionsPanel::toggleSound(bool play)
|
|||||||
#define CUSTOM_FUNCTION_ENABLE (1<<6)
|
#define CUSTOM_FUNCTION_ENABLE (1<<6)
|
||||||
#define CUSTOM_FUNCTION_REPEAT (1<<7)
|
#define CUSTOM_FUNCTION_REPEAT (1<<7)
|
||||||
#define CUSTOM_FUNCTION_PLAY (1<<8)
|
#define CUSTOM_FUNCTION_PLAY (1<<8)
|
||||||
#define CUSTOM_FUNCTION_BL_COLOR (1<<9)
|
|
||||||
#define CUSTOM_FUNCTION_SHOW_FUNC (1<<10)
|
#define CUSTOM_FUNCTION_SHOW_FUNC (1<<10)
|
||||||
|
|
||||||
|
|
||||||
@@ -551,7 +541,6 @@ void CustomFunctionsPanel::refreshCustomFunction(int i, bool modified)
|
|||||||
fswtchEnable[i]->setChecked(false);
|
fswtchEnable[i]->setChecked(false);
|
||||||
fswtchRepeat[i]->setVisible(widgetsMask & CUSTOM_FUNCTION_REPEAT);
|
fswtchRepeat[i]->setVisible(widgetsMask & CUSTOM_FUNCTION_REPEAT);
|
||||||
fswtchGVmode[i]->setVisible(widgetsMask & CUSTOM_FUNCTION_GV_MODE);
|
fswtchGVmode[i]->setVisible(widgetsMask & CUSTOM_FUNCTION_GV_MODE);
|
||||||
fswtchBLcolor[i]->setVisible(widgetsMask & CUSTOM_FUNCTION_BL_COLOR);
|
|
||||||
playBT[i]->setVisible(widgetsMask & CUSTOM_FUNCTION_PLAY);
|
playBT[i]->setVisible(widgetsMask & CUSTOM_FUNCTION_PLAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -103,7 +103,6 @@ class CustomFunctionsPanel : public GenericPanel
|
|||||||
QCheckBox * fswtchEnable[CPN_MAX_SPECIAL_FUNCTIONS];
|
QCheckBox * fswtchEnable[CPN_MAX_SPECIAL_FUNCTIONS];
|
||||||
QComboBox * fswtchRepeat[CPN_MAX_SPECIAL_FUNCTIONS];
|
QComboBox * fswtchRepeat[CPN_MAX_SPECIAL_FUNCTIONS];
|
||||||
QComboBox * fswtchGVmode[CPN_MAX_SPECIAL_FUNCTIONS];
|
QComboBox * fswtchGVmode[CPN_MAX_SPECIAL_FUNCTIONS];
|
||||||
QSlider * fswtchBLcolor[CPN_MAX_SPECIAL_FUNCTIONS];
|
|
||||||
QMediaPlayer * mediaPlayer;
|
QMediaPlayer * mediaPlayer;
|
||||||
|
|
||||||
int selectedIndex;
|
int selectedIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user