| 232 | } |
| 233 | |
| 234 | void FontSelectFrame::selectFile(const QString& file,int face) { |
| 235 | foreach (const QString& name, m_database.keys()) { |
| 236 | int id = 0; |
| 237 | const FontStyles &fs(m_database[name]); |
| 238 | foreach (const FontDef &fd, fs) { |
| 239 | if (fd.file == file && |
| 240 | fd.face == face) { |
| 241 | bool b = ui->comboBoxStyle->blockSignals(true); |
| 242 | bool block = ui->comboBoxSize->blockSignals(true); |
| 243 | |
| 244 | for (int i=0;i<ui->comboBoxFamily->count();i++) |
| 245 | if (ui->comboBoxFamily->itemText(i)==name) { |
| 246 | ui->comboBoxFamily->setCurrentIndex(i); |
| 247 | break; |
| 248 | } |
| 249 | |
| 250 | |
| 251 | for (int i=0;i<ui->comboBoxStyle->count();i++) |
| 252 | if (ui->comboBoxStyle->itemData(i).toInt()==id) { |
| 253 | ui->comboBoxStyle->setCurrentIndex(i); |
| 254 | on_comboBoxStyle_currentIndexChanged(i); |
| 255 | break; |
| 256 | } |
| 257 | ui->comboBoxSize->blockSignals(block); |
| 258 | ui->comboBoxStyle->blockSignals(b); |
| 259 | } |
| 260 | id++; |
| 261 | } |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | void FontSelectFrame::selectSize(int size) { |
| 266 | QString ss = QString().number(size); |
nothing calls this directly
no outgoing calls
no test coverage detected