QIcon(QString(iconNames[i])),
QString(buttonTitles[i]), this);
buttons[i] = button;
+ button->setPalette(QPalette(QColor(0, 0, 0, 192)));
layout->addWidget(button, i%2, i/2);
}
connect(buttons[4], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd4(bool)));
connect(buttons[5], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd5(bool)));
+ this->setContentsMargins(0, 0, 0, 0);
+ layout->setContentsMargins(0, 0, 0, 0);
this->setLayout(layout);
this->setAttribute(Qt::WA_TranslucentBackground);
}
QPainter p(this);
p.setBrush(QColor(0, 0, 0, 128));
p.setPen(Qt::NoPen);
- p.drawRoundRect(rect(), 10, 20);
+ p.drawRoundRect(rect(), 0, 0);
p.end();
}