Modify classes to be QObjects

This commit is contained in:
lupoDharkael
2017-06-14 01:02:43 +02:00
parent 878640bf53
commit ad044fbc93
4 changed files with 18 additions and 10 deletions

View File

@@ -25,14 +25,18 @@ namespace {
const int SEPARATION = 6;
}
ButtonHandler::ButtonHandler(const QVector<Button*> &v) {
ButtonHandler::ButtonHandler(const QVector<Button*> &v, QObject *parent) :
QObject(parent)
{
if (!v.isEmpty()) {
m_distance = v[0]->getButtonBaseSize() + SEPARATION;
m_vectorButtons = v;
}
}
ButtonHandler::ButtonHandler() {
ButtonHandler::ButtonHandler(QObject *parent) :
QObject(parent)
{
}
void ButtonHandler::hide() {