| 346 | } |
| 347 | |
| 348 | const QString MainWindow::alignmentToScreenName(const Qt::Alignment &align) const |
| 349 | { |
| 350 | if (align == Qt::AlignCenter) |
| 351 | return "Center"; |
| 352 | if (align == (Qt::AlignLeft | Qt::AlignBottom)) |
| 353 | return "BottomLeft"; |
| 354 | if (align == (Qt::AlignHCenter | Qt::AlignBottom)) |
| 355 | return "Bottom"; |
| 356 | if (align == (Qt::AlignRight | Qt::AlignBottom)) |
| 357 | return "BottomRight"; |
| 358 | if (align == (Qt::AlignRight | Qt::AlignVCenter)) |
| 359 | return "Right"; |
| 360 | if (align == (Qt::AlignRight | Qt::AlignTop)) |
| 361 | return "TopRight"; |
| 362 | if (align == (Qt::AlignHCenter | Qt::AlignTop)) |
| 363 | return "Top"; |
| 364 | if (align == (Qt::AlignLeft | Qt::AlignTop)) |
| 365 | return "TopLeft"; |
| 366 | if (align == (Qt::AlignLeft | Qt::AlignVCenter)) |
| 367 | return "Left"; |
| 368 | return "Center"; |
| 369 | } |
| 370 | |
| 371 | void MainWindow::populateWidgets() |
| 372 | { |
nothing calls this directly
no outgoing calls
no test coverage detected