parent
571c6eacfc
commit
add4b9e9a8
|
@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||
### Added
|
||||
- added UI option to change ini editor [#3116](https://github.com/sandboxie-plus/Sandboxie/issues/3116)
|
||||
- added Separate protection against box removal and content deletion [#3104] (https://github.com/sandboxie-plus/Sandboxie/issues/3104)
|
||||
- added Add "auto scroll" in sbie messages, resource monitor, api call log context menu [#393](https://github.com/sandboxie-plus/Sandboxie/issues/393)
|
||||
|
||||
### Changed
|
||||
- reworked Nt Object Handle handling
|
||||
|
|
|
@ -327,11 +327,14 @@ CTraceView::CTraceView(bool bStandAlone, QWidget* parent) : QWidget(parent)
|
|||
m_pTrace = new CTraceTree(this);
|
||||
m_pTrace->m_pTraceModel->SetTree(m_pTraceTree->isChecked());
|
||||
|
||||
m_pTrace->m_pAutoScroll = new QAction(tr("Auto Scroll"));
|
||||
m_pTrace->m_pAutoScroll->setChecked(theConf->GetBool("Options/TraceAutoScroll"));
|
||||
m_pTrace->GetMenu()->insertAction(m_pTrace->GetMenu()->actions()[0], m_pTrace->m_pAutoScroll);
|
||||
|
||||
if (bStandAlone) {
|
||||
QAction* pAction = new QAction(tr("Cleanup Trace Log"));
|
||||
connect(pAction, SIGNAL(triggered()), this, SLOT(Clear()));
|
||||
m_pTrace->GetMenu()->insertAction(m_pTrace->GetMenu()->actions()[0], pAction);
|
||||
m_pTrace->GetMenu()->insertSeparator(m_pTrace->GetMenu()->actions()[0]);
|
||||
m_pTrace->GetMenu()->insertAction(m_pTrace->GetMenu()->actions()[1], pAction);
|
||||
}
|
||||
|
||||
m_pLayout->addWidget(m_pTrace);
|
||||
|
@ -352,6 +355,8 @@ CTraceView::CTraceView(bool bStandAlone, QWidget* parent) : QWidget(parent)
|
|||
|
||||
CTraceView::~CTraceView()
|
||||
{
|
||||
theConf->SetValue("Options/TraceAutoScroll", m_pTrace->m_pAutoScroll->isChecked());
|
||||
|
||||
killTimer(m_uTimerID);
|
||||
}
|
||||
|
||||
|
@ -545,6 +550,9 @@ void CTraceView::Refresh()
|
|||
qDebug() << "Expand took" << (GetCurCycle() - start) / 1000000.0 << "s";
|
||||
});
|
||||
}
|
||||
|
||||
if(m_pTrace->m_pAutoScroll->isChecked())
|
||||
m_pTrace->m_pTreeList->scrollToBottom();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ protected:
|
|||
QTreeViewEx* m_pTreeList;
|
||||
CStackView* m_pStackView;
|
||||
|
||||
QAction* m_pAutoScroll;
|
||||
//QRegularExpression m_FilterExp;
|
||||
QString m_FilterExp;
|
||||
bool m_bHighLight;
|
||||
|
|
Loading…
Reference in New Issue