Skip to content

Commit aa647cd

Browse files
authored
Merge pull request #5590 from PrimozGodec/unique-list-view-search
Unique: replace listview with listViewSearch
2 parents 3657222 + 1c8326e commit aa647cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Orange/widgets/data/owunique.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import numpy as np
44

55
from AnyQt.QtCore import Qt
6+
from orangewidget.utils.listview import ListViewSearch
67

78
from Orange.data import Table
89
from Orange.widgets import widget, gui, settings
@@ -44,7 +45,9 @@ def __init__(self):
4445
self.var_model = DomainModel(parent=self, order=DomainModel.MIXED)
4546
var_list = gui.listView(
4647
self.controlArea, self, "selected_vars", box="Group by",
47-
model=self.var_model, callback=lambda: self.commit())
48+
model=self.var_model, callback=lambda: self.commit(),
49+
viewType=ListViewSearch
50+
)
4851
var_list.setSelectionMode(var_list.ExtendedSelection)
4952

5053
gui.comboBox(

0 commit comments

Comments
 (0)