Get all the names of the preset frame sizes in the form "Name (xxx,yyy)" in a QStringList. * This can be used to directly fill the combo box. */
| 95 | * This can be used to directly fill the combo box. |
| 96 | */ |
| 97 | QStringList FrameHandler::frameSizePresetList::getFormattedNames() const |
| 98 | { |
| 99 | QStringList presetList; |
| 100 | presetList.append("Custom Size"); |
| 101 | |
| 102 | for (int i = 1; i < names.count(); i++) |
| 103 | { |
| 104 | auto str = QString("%1 (%2,%3)").arg(names[i]).arg(sizes[i].width).arg(sizes[i].height); |
| 105 | presetList.append(str); |
| 106 | } |
| 107 | |
| 108 | return presetList; |
| 109 | } |
| 110 | |
| 111 | FrameHandler::frameSizePresetList FrameHandler::presetFrameSizes; |
| 112 |
no test coverage detected