MCPcopy Create free account
hub / github.com/KDE/kid3 / selectFrame

Method selectFrame

src/core/model/frameeditorobject.cpp:96–104  ·  view source on GitHub ↗

* Let user select a frame type. * frameSelected() is emitted when the edit dialog is closed with the selected * frame as a parameter if a frame is selected. * * @param frame is filled with the selected frame * @param taggedFile tagged file for which frame has to be selected */

Source from the content-addressed store, hash-verified

94 * @param taggedFile tagged file for which frame has to be selected
95 */
96void FrameEditorObject::selectFrame(Frame* frame, const TaggedFile* taggedFile)
97{
98 if (taggedFile && frame) {
99 QStringList frameNames = taggedFile->getFrameIds(m_tagNr);
100 m_displayNameMap = Frame::getDisplayNameMap(frameNames);
101 m_selectFrame = frame;
102 emit frameSelectionRequested(m_displayNameMap.keys());
103 }
104}
105
106/**
107 * Called when the frame selection dialog is closed.

Callers 1

selectAddAndEditFrameMethod · 0.45

Calls 1

getFrameIdsMethod · 0.45

Tested by

no test coverage detected