MCPcopy Create free account
hub / github.com/IENT/YUView / getFormattedNames

Method getFormattedNames

YUViewLib/src/video/FrameHandler.cpp:97–109  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

95 * This can be used to directly fill the combo box.
96 */
97QStringList 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
111FrameHandler::frameSizePresetList FrameHandler::presetFrameSizes;
112

Callers 1

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected