Clean up unused code
This commit is contained in:
parent
6a9a819f09
commit
6078d21ea3
|
@ -167,7 +167,7 @@ void QtMaterialToggle::setDisabledColor(const QColor &color)
|
|||
d->disabledColor = color;
|
||||
|
||||
MATERIAL_DISABLE_THEME_COLORS
|
||||
update();
|
||||
d->setupProperties();
|
||||
}
|
||||
|
||||
QColor QtMaterialToggle::disabledColor() const
|
||||
|
@ -188,7 +188,7 @@ void QtMaterialToggle::setActiveColor(const QColor &color)
|
|||
d->activeColor = color;
|
||||
|
||||
MATERIAL_DISABLE_THEME_COLORS
|
||||
update();
|
||||
d->setupProperties();
|
||||
}
|
||||
|
||||
QColor QtMaterialToggle::activeColor() const
|
||||
|
@ -209,7 +209,7 @@ void QtMaterialToggle::setInactiveColor(const QColor &color)
|
|||
d->inactiveColor = color;
|
||||
|
||||
MATERIAL_DISABLE_THEME_COLORS
|
||||
update();
|
||||
d->setupProperties();
|
||||
}
|
||||
|
||||
QColor QtMaterialToggle::inactiveColor() const
|
||||
|
@ -230,7 +230,7 @@ void QtMaterialToggle::setTrackColor(const QColor &color)
|
|||
d->trackColor = color;
|
||||
|
||||
MATERIAL_DISABLE_THEME_COLORS
|
||||
update();
|
||||
d->setupProperties();
|
||||
}
|
||||
|
||||
QColor QtMaterialToggle::trackColor() const
|
||||
|
|
|
@ -79,20 +79,3 @@ void SliderSettingsEditor::updateWidget()
|
|||
m_slider->setValue(ui->valueLineEdit->text().toInt());
|
||||
m_slider->setInvertedAppearance(ui->invertedCheckBox->isChecked());
|
||||
}
|
||||
|
||||
void SliderSettingsEditor::selectColor()
|
||||
{
|
||||
QColorDialog dialog;
|
||||
if (dialog.exec()) {
|
||||
QColor color = dialog.selectedColor();
|
||||
QString senderName = sender()->objectName();
|
||||
//if ("textColorToolButton" == senderName) {
|
||||
// m_avatar->setTextColor(color);
|
||||
// ui->textColorLineEdit->setText(color.name(QColor::HexRgb));
|
||||
//} else if ("backgroundColorToolButton" == senderName) {
|
||||
// m_avatar->setBackgroundColor(color);
|
||||
// ui->backgroundColorLineEdit->setText(color.name(QColor::HexRgb));
|
||||
//}
|
||||
}
|
||||
setupForm();
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@ public:
|
|||
protected slots:
|
||||
void setupForm();
|
||||
void updateWidget();
|
||||
void selectColor();
|
||||
|
||||
private:
|
||||
Ui::SliderSettingsForm *const ui;
|
||||
|
|
Loading…
Reference in New Issue