[skip ci]
This commit is contained in:
DavidXanatos 2023-07-22 11:59:54 +02:00
parent 571c6eacfc
commit add4b9e9a8
3 changed files with 12 additions and 2 deletions

View File

@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added ### Added
- added UI option to change ini editor [#3116](https://github.com/sandboxie-plus/Sandboxie/issues/3116) - 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 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 ### Changed
- reworked Nt Object Handle handling - reworked Nt Object Handle handling

View File

@ -327,11 +327,14 @@ CTraceView::CTraceView(bool bStandAlone, QWidget* parent) : QWidget(parent)
m_pTrace = new CTraceTree(this); m_pTrace = new CTraceTree(this);
m_pTrace->m_pTraceModel->SetTree(m_pTraceTree->isChecked()); 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) { if (bStandAlone) {
QAction* pAction = new QAction(tr("Cleanup Trace Log")); QAction* pAction = new QAction(tr("Cleanup Trace Log"));
connect(pAction, SIGNAL(triggered()), this, SLOT(Clear())); connect(pAction, SIGNAL(triggered()), this, SLOT(Clear()));
m_pTrace->GetMenu()->insertAction(m_pTrace->GetMenu()->actions()[0], pAction); m_pTrace->GetMenu()->insertAction(m_pTrace->GetMenu()->actions()[1], pAction);
m_pTrace->GetMenu()->insertSeparator(m_pTrace->GetMenu()->actions()[0]);
} }
m_pLayout->addWidget(m_pTrace); m_pLayout->addWidget(m_pTrace);
@ -352,6 +355,8 @@ CTraceView::CTraceView(bool bStandAlone, QWidget* parent) : QWidget(parent)
CTraceView::~CTraceView() CTraceView::~CTraceView()
{ {
theConf->SetValue("Options/TraceAutoScroll", m_pTrace->m_pAutoScroll->isChecked());
killTimer(m_uTimerID); killTimer(m_uTimerID);
} }
@ -545,6 +550,9 @@ void CTraceView::Refresh()
qDebug() << "Expand took" << (GetCurCycle() - start) / 1000000.0 << "s"; qDebug() << "Expand took" << (GetCurCycle() - start) / 1000000.0 << "s";
}); });
} }
if(m_pTrace->m_pAutoScroll->isChecked())
m_pTrace->m_pTreeList->scrollToBottom();
} }
} }

View File

@ -43,6 +43,7 @@ protected:
QTreeViewEx* m_pTreeList; QTreeViewEx* m_pTreeList;
CStackView* m_pStackView; CStackView* m_pStackView;
QAction* m_pAutoScroll;
//QRegularExpression m_FilterExp; //QRegularExpression m_FilterExp;
QString m_FilterExp; QString m_FilterExp;
bool m_bHighLight; bool m_bHighLight;