WIP: netlist browser: context menu.

This commit is contained in:
Matthias Koefferlein 2019-04-26 23:32:26 +02:00
parent 97fb852579
commit c613ddb633
2 changed files with 47 additions and 1 deletions

View File

@ -291,6 +291,16 @@
</widget>
</item>
</layout>
<action name="actionCollapseAll">
<property name="text">
<string>Collapse All</string>
</property>
</action>
<action name="actionExpandAll">
<property name="text">
<string>Expand All</string>
</property>
</action>
</widget>
<tabstops>
<tabstop>directory_tree</tabstop>
@ -298,5 +308,38 @@
<resources>
<include location="../../lay/lay/layResources.qrc"/>
</resources>
<connections/>
<connections>
<connection>
<sender>actionCollapseAll</sender>
<signal>triggered()</signal>
<receiver>directory_tree</receiver>
<slot>collapseAll()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>324</x>
<y>281</y>
</hint>
</hints>
</connection>
<connection>
<sender>actionExpandAll</sender>
<signal>triggered()</signal>
<receiver>directory_tree</receiver>
<slot>expandAll()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>324</x>
<y>281</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1285,6 +1285,9 @@ NetlistBrowserPage::NetlistBrowserPage (QWidget * /*parent*/)
m_show_all_action->setCheckable (true);
m_show_all_action->setChecked (m_show_all);
directory_tree->addAction (actionCollapseAll);
directory_tree->addAction (actionExpandAll);
lay::HTMLItemDelegate *delegate;
delegate = new lay::HTMLItemDelegate (this);