66from AnyQt .QtWidgets import (
77 QGraphicsView , QGraphicsScene , QGraphicsItem , QGraphicsSimpleTextItem ,
88 QGraphicsTextItem , QGraphicsItemGroup , QGraphicsLineItem ,
9- QGraphicsPathItem , QGraphicsRectItem , QSizePolicy ,
10- QListView )
9+ QGraphicsPathItem , QGraphicsRectItem , QSizePolicy
10+ )
1111from AnyQt .QtGui import QPen , QColor , QBrush , QPainterPath , QPainter , QFont
1212from AnyQt .QtCore import Qt , QEvent , QRectF , QSize , QSortFilterProxyModel
13+ from orangewidget .utils .listview import ListViewSearch
1314
1415import scipy .special
1516from scipy .stats import f_oneway , chi2_contingency
@@ -201,7 +202,7 @@ def __init__(self):
201202 sorted_model .setSourceModel (self .attrs )
202203 sorted_model .sort (0 )
203204 box = gui .vBox (self .controlArea , "Variable" )
204- view = self .attr_list = QListView ()
205+ view = self .attr_list = ListViewSearch ()
205206 view .setModel (sorted_model )
206207 view .setSelectionMode (view .SingleSelection )
207208 view .selectionModel ().selectionChanged .connect (self .attr_changed )
@@ -223,7 +224,7 @@ def __init__(self):
223224 sorted_model .sort (0 )
224225
225226 box = gui .vBox (self .controlArea , "Subgroups" )
226- view = self .group_list = QListView ()
227+ view = self .group_list = ListViewSearch ()
227228 view .setModel (sorted_model )
228229 view .selectionModel ().selectionChanged .connect (self .grouping_changed )
229230 view .setMinimumSize (QSize (30 , 30 ))
0 commit comments