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;
|
d->disabledColor = color;
|
||||||
|
|
||||||
MATERIAL_DISABLE_THEME_COLORS
|
MATERIAL_DISABLE_THEME_COLORS
|
||||||
update();
|
d->setupProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
QColor QtMaterialToggle::disabledColor() const
|
QColor QtMaterialToggle::disabledColor() const
|
||||||
|
@ -188,7 +188,7 @@ void QtMaterialToggle::setActiveColor(const QColor &color)
|
||||||
d->activeColor = color;
|
d->activeColor = color;
|
||||||
|
|
||||||
MATERIAL_DISABLE_THEME_COLORS
|
MATERIAL_DISABLE_THEME_COLORS
|
||||||
update();
|
d->setupProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
QColor QtMaterialToggle::activeColor() const
|
QColor QtMaterialToggle::activeColor() const
|
||||||
|
@ -209,7 +209,7 @@ void QtMaterialToggle::setInactiveColor(const QColor &color)
|
||||||
d->inactiveColor = color;
|
d->inactiveColor = color;
|
||||||
|
|
||||||
MATERIAL_DISABLE_THEME_COLORS
|
MATERIAL_DISABLE_THEME_COLORS
|
||||||
update();
|
d->setupProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
QColor QtMaterialToggle::inactiveColor() const
|
QColor QtMaterialToggle::inactiveColor() const
|
||||||
|
@ -230,7 +230,7 @@ void QtMaterialToggle::setTrackColor(const QColor &color)
|
||||||
d->trackColor = color;
|
d->trackColor = color;
|
||||||
|
|
||||||
MATERIAL_DISABLE_THEME_COLORS
|
MATERIAL_DISABLE_THEME_COLORS
|
||||||
update();
|
d->setupProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
QColor QtMaterialToggle::trackColor() const
|
QColor QtMaterialToggle::trackColor() const
|
||||||
|
|
|
@ -79,20 +79,3 @@ void SliderSettingsEditor::updateWidget()
|
||||||
m_slider->setValue(ui->valueLineEdit->text().toInt());
|
m_slider->setValue(ui->valueLineEdit->text().toInt());
|
||||||
m_slider->setInvertedAppearance(ui->invertedCheckBox->isChecked());
|
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:
|
protected slots:
|
||||||
void setupForm();
|
void setupForm();
|
||||||
void updateWidget();
|
void updateWidget();
|
||||||
void selectColor();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::SliderSettingsForm *const ui;
|
Ui::SliderSettingsForm *const ui;
|
||||||
|
|
Loading…
Reference in New Issue