equal
deleted
inserted
replaced
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(QColor(value(QString("colors/color%1").arg(i), model->item(i)->data().value<QColor>()).value<QColor>())); |
160 } |
160 } |
161 |
161 |
162 { // load binds |
162 { // load binds |
163 QStandardItemModel * binds = DataManager::instance().bindsModel(); |
|
164 for(int i = 0; i < BINDS_NUMBER; i++) |
163 for(int i = 0; i < BINDS_NUMBER; i++) |
165 { |
164 { |
166 m_binds[i].strbind = value(QString("Binds/%1").arg(m_binds[i].action), cbinds[i].strbind).toString(); |
165 m_binds[i].strbind = value(QString("Binds/%1").arg(m_binds[i].action), cbinds[i].strbind).toString(); |
167 if (m_binds[i].strbind.isEmpty() || m_binds[i].strbind == "default") m_binds[i].strbind = cbinds[i].strbind; |
166 if (m_binds[i].strbind.isEmpty() || m_binds[i].strbind == "default") m_binds[i].strbind = cbinds[i].strbind; |
168 } |
167 } |