|
|
@ -491,7 +491,7 @@ namespace GeorgesQt
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
if(item->isArray())
|
|
|
|
if(item->isArray())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
contextMenu.addAction("Append array entry...");
|
|
|
|
contextMenu.addAction("Append array entry...");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if(item->isArrayMember())
|
|
|
|
else if(item->isArrayMember())
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -527,8 +527,23 @@ namespace GeorgesQt
|
|
|
|
// contextMenu.addAction("Revert to parent/default...");
|
|
|
|
// contextMenu.addAction("Revert to parent/default...");
|
|
|
|
|
|
|
|
|
|
|
|
QAction *selectedItem = contextMenu.exec(QCursor::pos());
|
|
|
|
QAction *selectedItem = contextMenu.exec(QCursor::pos());
|
|
|
|
// if(selectedItem)
|
|
|
|
if(selectedItem)
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
|
|
|
|
if(selectedItem->text() == "Append array entry...")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // Append an array entry...
|
|
|
|
|
|
|
|
else if(selectedItem->text() == "Delete array entry...")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if(selectedItem->text() == "Insert after array entry...")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(selectedItem->text() == "Add parent...")
|
|
|
|
// if(selectedItem->text() == "Add parent...")
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// // Get the file extension of the form so we can build a dialog pattern.
|
|
|
|
// // Get the file extension of the form so we can build a dialog pattern.
|
|
|
@ -576,7 +591,7 @@ namespace GeorgesQt
|
|
|
|
// m_ui.treeView->expandAll();
|
|
|
|
// m_ui.treeView->expandAll();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// } // if selected context menu item is valid.
|
|
|
|
} // if selected context menu item is valid.
|
|
|
|
} // if 'm' model valid.
|
|
|
|
} // if 'm' model valid.
|
|
|
|
|
|
|
|
|
|
|
|
//if(structContext)
|
|
|
|
//if(structContext)
|
|
|
|