Small enhancements of netlist browser: multiple items can be selected in log view (for manyfold geometries), highlights are cleared on tab change

This commit is contained in:
Matthias Koefferlein 2024-03-17 18:36:49 +01:00
parent b10cda574c
commit 8984531a8c
3 changed files with 14 additions and 1 deletions

View File

@ -134,7 +134,7 @@
<string>...</string>
</property>
<property name="icon">
<iconset>
<iconset resource="../../icons/icons.qrc">
<normaloff>:/run_16px.png</normaloff>:/run_16px.png</iconset>
</property>
<property name="shortcut">
@ -576,6 +576,9 @@
<property name="contextMenuPolicy">
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="headerHidden">
<bool>true</bool>
</property>

View File

@ -235,6 +235,8 @@ NetlistBrowserPage::NetlistBrowserPage (QWidget * /*parent*/)
connect (actionExportAll, SIGNAL (triggered ()), this, SLOT (export_all ()));
connect (actionExportSelected, SIGNAL (triggered ()), this, SLOT (export_selected ()));
connect (mode_tab, SIGNAL (currentChanged (int)), this, SLOT (mode_tab_changed (int)));
forward->setEnabled (false);
backward->setEnabled (false);
}
@ -330,6 +332,13 @@ NetlistBrowserPage::eventFilter (QObject *watched, QEvent *event)
}
}
void
NetlistBrowserPage::mode_tab_changed (int)
{
clear_highlights ();
dm_update_highlights ();
}
void
NetlistBrowserPage::layer_list_changed (int)
{

View File

@ -214,6 +214,7 @@ private slots:
void log_selection_changed ();
void browse_color_for_net ();
void select_color_for_net ();
void mode_tab_changed (int);
protected:
bool eventFilter (QObject *watched, QEvent *event);