Clean up unused code

This commit is contained in:
johanneshilden 2017-09-29 20:06:39 +03:00
parent 6a9a819f09
commit 6078d21ea3
3 changed files with 4 additions and 22 deletions

View File

@ -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

View File

@ -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();
}

View File

@ -17,7 +17,6 @@ public:
protected slots:
void setupForm();
void updateWidget();
void selectColor();
private:
Ui::SliderSettingsForm *const ui;