SearchTools crashes FreeCAD
This commit is contained in:
parent
36aa4e2642
commit
e900855ea3
|
@ -3,8 +3,8 @@ if True:
|
||||||
mw = Gui.getMainWindow()
|
mw = Gui.getMainWindow()
|
||||||
mdi = mw.findChild(QtGui.QMdiArea)
|
mdi = mw.findChild(QtGui.QMdiArea)
|
||||||
|
|
||||||
mw.findChildren(QtGui.QToolBar, 'XternalApplications')
|
#mw.findChildren(QtGui.QToolBar, 'XternalApplications')
|
||||||
mw.findChildren(QtGui.QToolBar, 'XternalApplications')[0]
|
#mw.findChildren(QtGui.QToolBar, 'XternalApplications')[0]
|
||||||
|
|
||||||
wdg = QtGui.QWidget()
|
wdg = QtGui.QWidget()
|
||||||
lay = QtGui.QGridLayout(wdg)
|
lay = QtGui.QGridLayout(wdg)
|
||||||
|
@ -21,12 +21,19 @@ if True:
|
||||||
sea.textChanged.connect(flt.setFilterWildcard)
|
sea.textChanged.connect(flt.setFilterWildcard)
|
||||||
# make the QListView non-editable
|
# make the QListView non-editable
|
||||||
lsv.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
lsv.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
||||||
lsv.setModel(flt)
|
#lsv.setModel(flt)
|
||||||
lay.addWidget(lsv)
|
#lay.addWidget(lsv)
|
||||||
|
|
||||||
mwx.setCentralWidget(wdg)
|
mwx.setCentralWidget(wdg)
|
||||||
mdi.addSubWindow(mwx)
|
mdi.addSubWindow(mwx)
|
||||||
|
|
||||||
|
xap = mw.findChildren(QtGui.QToolBar, 'XternalApplications')[0]
|
||||||
|
le = QtGui.QLineEdit()
|
||||||
|
xap.addWidget(le)
|
||||||
|
qom = QtGui.QCompleter()
|
||||||
|
qom.setModel(sim)
|
||||||
|
qom.setPopup(lsv)
|
||||||
|
|
||||||
all_tbs = set()
|
all_tbs = set()
|
||||||
for wbname, workbench in Gui.listWorkbenches().items():
|
for wbname, workbench in Gui.listWorkbenches().items():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user