give sensible names to slots

This commit is contained in:
laserpants 2016-03-29 23:46:50 +03:00
parent 6feca1a611
commit 7c2c6c56d0
2 changed files with 6 additions and 6 deletions

View File

@ -108,8 +108,8 @@ Toggle::Toggle(QWidget *parent)
_thumb->installEventFilter(this);
connect(_thumb, SIGNAL(clicked()), this, SLOT(toggle()));
connect(_thumb, SIGNAL(clicked()), this, SLOT(xx()));
connect(_thumb, SIGNAL(progressChanged(qreal)), this, SLOT(yy()));
connect(_thumb, SIGNAL(clicked()), this, SLOT(addRipple()));
connect(_thumb, SIGNAL(progressChanged(qreal)), this, SLOT(updateOverlayGeometry()));
}
Toggle::~Toggle()
@ -130,7 +130,7 @@ void Toggle::setOrientation(Qt::Orientation orientation)
_orientation = orientation;
}
void Toggle::xx()
void Toggle::addRipple()
{
if (Qt::Horizontal == _orientation) {
const int d = height()/2;
@ -143,7 +143,7 @@ void Toggle::xx()
}
}
void Toggle::yy()
void Toggle::updateOverlayGeometry()
{
const int d = _thumb->offset();

View File

@ -53,8 +53,8 @@ public:
void setOrientation(Qt::Orientation orientation);
protected slots:
void xx();
void yy();
void addRipple();
void updateOverlayGeometry();
protected:
bool event(QEvent *event) Q_DECL_OVERRIDE;