QTfrontend/gameuiconfig.cpp
changeset 8386 2aaa2995a32e
parent 8385 9e8924ff9813
child 8387 f9d1191476ce
equal deleted inserted replaced
8385:9e8924ff9813 8386:2aaa2995a32e
   154     Form->ui.pageOptions->leProxyPassword->setText(value("proxy/password", "").toString());
   154     Form->ui.pageOptions->leProxyPassword->setText(value("proxy/password", "").toString());
   155 
   155 
   156     { // load colors
   156     { // load colors
   157         QStandardItemModel * model = DataManager::instance().colorsModel();
   157         QStandardItemModel * model = DataManager::instance().colorsModel();
   158         for(int i = model->rowCount() - 1; i >= 0; --i)
   158         for(int i = model->rowCount() - 1; i >= 0; --i)
   159             model->item(i)->setData(QColor(value(QString("colors/color%1").arg(i), model->item(i)->data().value<QColor>()).value<QColor>()));
   159             model->item(i)->setData(value(QString("colors/color%1").arg(i), model->item(i)->data()));
   160     }
   160     }
   161 
   161 
   162     { // load binds
   162     { // load binds
   163         for(int i = 0; i < BINDS_NUMBER; i++)
   163         for(int i = 0; i < BINDS_NUMBER; i++)
   164         {
   164         {