forked from len0rd/rockbox
themeeditor: Make it compile with current Qt5.
- Replace use of obsolete members with their replacements. - Fix type issue that requires explicitly creating the right object now. - Update project file to work with Qt5. Change-Id: I3af2b1520796e977e58c0a01e165c77c469a23b9
This commit is contained in:
parent
ff38666a19
commit
fa330c109d
10 changed files with 35 additions and 35 deletions
|
@ -85,13 +85,13 @@ void PreferencesDialog::loadColors()
|
|||
/* Buttons from the editor group */
|
||||
settings.beginGroup("SkinDocument");
|
||||
|
||||
fgColor = settings.value("fgColor", Qt::black).value<QColor>();
|
||||
fgColor = settings.value("fgColor", QColor(Qt::black)).value<QColor>();
|
||||
setButtonColor(ui->fgButton, fgColor);
|
||||
|
||||
bgColor = settings.value("bgColor", Qt::white).value<QColor>();
|
||||
bgColor = settings.value("bgColor", QColor(Qt::white)).value<QColor>();
|
||||
setButtonColor(ui->bgButton, bgColor);
|
||||
|
||||
errorColor = settings.value("errorColor", Qt::red).value<QColor>();
|
||||
errorColor = settings.value("errorColor", QColor(Qt::red)).value<QColor>();
|
||||
setButtonColor(ui->errorButton, errorColor);
|
||||
|
||||
settings.endGroup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue