This commit is contained in:
DavidXanatos 2023-02-04 14:37:39 +01:00
parent fd84d426ac
commit f231da3cef
2 changed files with 5 additions and 2 deletions

View File

@ -124,7 +124,8 @@ CFinder::~CFinder()
void CFinder::SetTree(QTreeView* pTree)
{
m_pTree = pTree;
QObject::connect(this, SIGNAL(SelectNext()), this, SLOT(OnSelectNext()));
if(m_pModel)
QObject::connect(this, SIGNAL(SelectNext()), this, SLOT(OnSelectNext()));
}
bool CFinder::eventFilter(QObject* source, QEvent* event)

View File

@ -86,8 +86,10 @@ CTraceTree::CTraceTree(QWidget* parent)
//connect(m_pBoxTree, SIGNAL(ColumnChanged(int, bool)), this, SLOT(OnColumnsChanged()));
//m_pMainLayout->addWidget(CFinder::AddFinder(m_pTreeList, m_pSortProxy));
m_pMainLayout->addWidget(CFinder::AddFinder(m_pTreeList, this, CFinder::eHighLightDefault));
CFinder* pFinder;
m_pMainLayout->addWidget(CFinder::AddFinder(m_pTreeList, m_pTraceModel, CFinder::eHighLightDefault, &pFinder));
//QObject::connect(pFinder, SIGNAL(SelectNext()), this, SLOT(SelectNext()));
QObject::connect(pFinder, SIGNAL(SetFilter(const QString&, int, int)), this, SLOT(SetFilter(const QString&, int, int)));
QByteArray Columns = theConf->GetBlob("MainWindow/TraceLog_Columns");