Use ints for colors instead of string literals

This commit is contained in:
Luis Ángel San Martín
2021-09-30 22:01:07 +02:00
parent d8cb61314d
commit cc927de7de
7 changed files with 7 additions and 7 deletions

View File

@ -51,7 +51,7 @@ YACReaderTranslator::YACReaderTranslator(Viewer *parent)
this->setAutoFillBackground(true);
this->setBackgroundRole(QPalette::Window);
QPalette p(this->palette());
p.setColor(QPalette::Window, QColor("#404040"));
p.setColor(QPalette::Window, QColor(0x404040));
this->setPalette(p);
auto layout = new QVBoxLayout(this);