mirror of https://github.com/AxioDL/amuse.git
Ensure all post-show widgets are constructed with a parent
This commit is contained in:
parent
303877655f
commit
cefa0ac18c
|
@ -337,7 +337,10 @@ void MIDIFileDelegate::setModelData(QWidget* editor, QAbstractItemModel* m, cons
|
||||||
const SetupListModel* model = static_cast<const SetupListModel*>(index.model());
|
const SetupListModel* model = static_cast<const SetupListModel*>(index.model());
|
||||||
auto entry = model->m_sorted[index.row()];
|
auto entry = model->m_sorted[index.row()];
|
||||||
if (g_MainWindow->projectModel()->getMIDIPathOfSong(entry->first) == widget->path())
|
if (g_MainWindow->projectModel()->getMIDIPathOfSong(entry->first) == widget->path())
|
||||||
|
{
|
||||||
|
emit m->dataChanged(index, index);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
g_MainWindow->pushUndoCommand(new SongMIDIPathChangeUndoCommand(model->m_node.get(),
|
g_MainWindow->pushUndoCommand(new SongMIDIPathChangeUndoCommand(model->m_node.get(),
|
||||||
tr("Change MIDI Path"), entry->first, widget->path()));
|
tr("Change MIDI Path"), entry->first, widget->path()));
|
||||||
emit m->dataChanged(index, index);
|
emit m->dataChanged(index, index);
|
||||||
|
@ -1417,7 +1420,8 @@ void SongGroupEditor::setupDataChanged()
|
||||||
std::vector<uint8_t> arrData = LoadSongFile(g_MainWindow->projectModel()->dir().absoluteFilePath(path));
|
std::vector<uint8_t> arrData = LoadSongFile(g_MainWindow->projectModel()->dir().absoluteFilePath(path));
|
||||||
if (!arrData.empty())
|
if (!arrData.empty())
|
||||||
{
|
{
|
||||||
MIDIPlayerWidget* newW = new MIDIPlayerWidget(index, m_setupList.m_node->m_id, p.m_it->first, std::move(arrData));
|
MIDIPlayerWidget* newW = new MIDIPlayerWidget(index, m_setupList.m_node->m_id, p.m_it->first,
|
||||||
|
std::move(arrData), m_setupTable->m_listView->viewport());
|
||||||
m_setupTable->m_listView->setIndexWidget(index, newW);
|
m_setupTable->m_listView->setIndexWidget(index, newW);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -645,7 +645,7 @@ void SoundGroupEditor::sfxDataChanged()
|
||||||
SFXPlayerWidget* w = qobject_cast<SFXPlayerWidget*>(m_sfxTable->indexWidget(index));
|
SFXPlayerWidget* w = qobject_cast<SFXPlayerWidget*>(m_sfxTable->indexWidget(index));
|
||||||
if (!w || w->sfxId() != p->first)
|
if (!w || w->sfxId() != p->first)
|
||||||
{
|
{
|
||||||
SFXPlayerWidget* newW = new SFXPlayerWidget(index, m_sfxs.m_node->m_id, p->first);
|
SFXPlayerWidget* newW = new SFXPlayerWidget(index, m_sfxs.m_node->m_id, p->first, m_sfxTable->viewport());
|
||||||
m_sfxTable->setIndexWidget(index, newW);
|
m_sfxTable->setIndexWidget(index, newW);
|
||||||
}
|
}
|
||||||
++idx;
|
++idx;
|
||||||
|
|
|
@ -329,7 +329,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>MIDIFileDelegate</name>
|
<name>MIDIFileDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="342"/>
|
<location filename="../SongGroupEditor.cpp" line="345"/>
|
||||||
<source>Change MIDI Path</source>
|
<source>Change MIDI Path</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -350,13 +350,13 @@
|
||||||
<context>
|
<context>
|
||||||
<name>MIDIPlayerWidget</name>
|
<name>MIDIPlayerWidget</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1192"/>
|
<location filename="../SongGroupEditor.cpp" line="1195"/>
|
||||||
<source>Stop</source>
|
<source>Stop</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1206"/>
|
<location filename="../SongGroupEditor.cpp" line="1209"/>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1229"/>
|
<location filename="../SongGroupEditor.cpp" line="1232"/>
|
||||||
<source>Play</source>
|
<source>Play</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1002,38 +1002,38 @@
|
||||||
<context>
|
<context>
|
||||||
<name>PageModel</name>
|
<name>PageModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="468"/>
|
<location filename="../SongGroupEditor.cpp" line="471"/>
|
||||||
<source>Program Conflict</source>
|
<source>Program Conflict</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="469"/>
|
<location filename="../SongGroupEditor.cpp" line="472"/>
|
||||||
<source>Program %1 is already defined in table</source>
|
<source>Program %1 is already defined in table</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="475"/>
|
<location filename="../SongGroupEditor.cpp" line="478"/>
|
||||||
<location filename="../SongGroupEditor.cpp" line="501"/>
|
<location filename="../SongGroupEditor.cpp" line="504"/>
|
||||||
<source>Change %1</source>
|
<source>Change %1</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="515"/>
|
<location filename="../SongGroupEditor.cpp" line="518"/>
|
||||||
<source>Program</source>
|
<source>Program</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="517"/>
|
<location filename="../SongGroupEditor.cpp" line="520"/>
|
||||||
<source>Object</source>
|
<source>Object</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="519"/>
|
<location filename="../SongGroupEditor.cpp" line="522"/>
|
||||||
<source>Priority</source>
|
<source>Priority</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="521"/>
|
<location filename="../SongGroupEditor.cpp" line="524"/>
|
||||||
<source>Max Voices</source>
|
<source>Max Voices</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1067,12 +1067,12 @@
|
||||||
<context>
|
<context>
|
||||||
<name>PageTableView</name>
|
<name>PageTableView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1052"/>
|
<location filename="../SongGroupEditor.cpp" line="1055"/>
|
||||||
<source>Delete Page Entries</source>
|
<source>Delete Page Entries</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1052"/>
|
<location filename="../SongGroupEditor.cpp" line="1055"/>
|
||||||
<source>Delete Page Entry</source>
|
<source>Delete Page Entry</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1490,27 +1490,27 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SetupListModel</name>
|
<name>SetupListModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="741"/>
|
<location filename="../SongGroupEditor.cpp" line="744"/>
|
||||||
<source>Song Conflict</source>
|
<source>Song Conflict</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="742"/>
|
<location filename="../SongGroupEditor.cpp" line="745"/>
|
||||||
<source>Song %1 is already defined in project</source>
|
<source>Song %1 is already defined in project</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="747"/>
|
<location filename="../SongGroupEditor.cpp" line="750"/>
|
||||||
<source>Change Song Name</source>
|
<source>Change Song Name</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="764"/>
|
<location filename="../SongGroupEditor.cpp" line="767"/>
|
||||||
<source>Song</source>
|
<source>Song</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="766"/>
|
<location filename="../SongGroupEditor.cpp" line="769"/>
|
||||||
<source>MIDI File</source>
|
<source>MIDI File</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1518,32 +1518,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SetupModel</name>
|
<name>SetupModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="987"/>
|
<location filename="../SongGroupEditor.cpp" line="990"/>
|
||||||
<source>Change %1</source>
|
<source>Change %1</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1004"/>
|
<location filename="../SongGroupEditor.cpp" line="1007"/>
|
||||||
<source>Program</source>
|
<source>Program</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1006"/>
|
<location filename="../SongGroupEditor.cpp" line="1009"/>
|
||||||
<source>Volume</source>
|
<source>Volume</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1008"/>
|
<location filename="../SongGroupEditor.cpp" line="1011"/>
|
||||||
<source>Panning</source>
|
<source>Panning</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1010"/>
|
<location filename="../SongGroupEditor.cpp" line="1013"/>
|
||||||
<source>Reverb</source>
|
<source>Reverb</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1012"/>
|
<location filename="../SongGroupEditor.cpp" line="1015"/>
|
||||||
<source>Chorus</source>
|
<source>Chorus</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1551,12 +1551,12 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SetupTableView</name>
|
<name>SetupTableView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1115"/>
|
<location filename="../SongGroupEditor.cpp" line="1118"/>
|
||||||
<source>Delete Setup Entries</source>
|
<source>Delete Setup Entries</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1115"/>
|
<location filename="../SongGroupEditor.cpp" line="1118"/>
|
||||||
<source>Delete Setup Entry</source>
|
<source>Delete Setup Entry</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1564,37 +1564,37 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SongGroupEditor</name>
|
<name>SongGroupEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1501"/>
|
<location filename="../SongGroupEditor.cpp" line="1505"/>
|
||||||
<source>Add new page entry</source>
|
<source>Add new page entry</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1503"/>
|
<location filename="../SongGroupEditor.cpp" line="1507"/>
|
||||||
<source>Remove selected page entries</source>
|
<source>Remove selected page entries</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1470"/>
|
<location filename="../SongGroupEditor.cpp" line="1474"/>
|
||||||
<source>Normal Pages</source>
|
<source>Normal Pages</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1300"/>
|
<location filename="../SongGroupEditor.cpp" line="1303"/>
|
||||||
<source>Add Page Entry</source>
|
<source>Add Page Entry</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1312"/>
|
<location filename="../SongGroupEditor.cpp" line="1315"/>
|
||||||
<source>Add Setup Entry</source>
|
<source>Add Setup Entry</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1471"/>
|
<location filename="../SongGroupEditor.cpp" line="1475"/>
|
||||||
<source>Drum Pages</source>
|
<source>Drum Pages</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SongGroupEditor.cpp" line="1472"/>
|
<location filename="../SongGroupEditor.cpp" line="1476"/>
|
||||||
<source>MIDI Setups</source>
|
<source>MIDI Setups</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in New Issue