gradient.setColorAt(1, Qt::white);
}
else {
gradient.setStart(width()-10, 0);
gradient.setFinalStop(width(), 0);
gradient.setColorAt(0, Qt::white);
gradient.setColorAt(1, Qt::white);
}
else {
gradient.setStart(width()-10, 0);
gradient.setFinalStop(width(), 0);
gradient.setColorAt(0, Qt::white);