Added cmdNew implementation.

This commit is contained in:
2025-09-04 13:52:23 +02:00
parent 831daf898c
commit f8bd0886d3
5 changed files with 25 additions and 27 deletions

View File

@@ -98,6 +98,8 @@ void XQChildModel::addSectionEntry( const QString& key, const XQNodePtr& content
void XQChildModel::initContextMenu()
{
_sections.dump();
// __fixme! add a menu title
_contextMenu->clear();
@@ -117,7 +119,7 @@ void XQChildModel::initContextMenu()
// __fixme! set 'toggle section <name>' entry
//contextMenu.actions().first()->setText("<name>");
_contextMenu->addAction( "icn29Dummy", "Toggle Section", XQCommand::cmdToggleSection, hasSel);
_contextMenu->addAction( "icn29Dummy", "Hide Section", XQCommand::cmdToggleSection, true );
}