@@ -19,20 +19,19 @@ QGC_LOGGING_CATEGORY(ParameterEditorControllerLog, "qgc.qmlcontrols.parameteredi
19
19
ParameterEditorController::ParameterEditorController(QObject *parent)
20
20
: FactPanelController(parent)
21
21
, _parameterMgr(_vehicle->parameterManager ())
22
- , _searchTimer(new QTimer(this ))
23
22
{
24
23
// qCDebug(ParameterEditorControllerLog) << Q_FUNC_INFO << this;
25
24
26
25
_buildLists ();
27
26
28
- _searchTimer-> setSingleShot (true );
29
- _searchTimer-> setInterval (300 );
27
+ _searchTimer. setSingleShot (true );
28
+ _searchTimer. setInterval (300 );
30
29
31
30
connect (this , &ParameterEditorController::currentCategoryChanged, this , &ParameterEditorController::_currentCategoryChanged);
32
31
connect (this , &ParameterEditorController::currentGroupChanged, this , &ParameterEditorController::_currentGroupChanged);
33
32
connect (this , &ParameterEditorController::searchTextChanged, this , &ParameterEditorController::_searchTextChanged);
34
33
connect (this , &ParameterEditorController::showModifiedOnlyChanged, this , &ParameterEditorController::_searchTextChanged);
35
- connect (_searchTimer, &QTimer::timeout, this , &ParameterEditorController::_performSearch);
34
+ connect (& _searchTimer, &QTimer::timeout, this , &ParameterEditorController::_performSearch);
36
35
connect (_parameterMgr, &ParameterManager::factAdded, this , &ParameterEditorController::_factAdded);
37
36
38
37
ParameterEditorCategory* category = _categories.count () ? _categories.value <ParameterEditorCategory*>(0 ) : nullptr ;
@@ -375,8 +374,8 @@ bool ParameterEditorController::_shouldShow(Fact* fact) const
375
374
376
375
void ParameterEditorController::_searchTextChanged (void )
377
376
{
378
- if (!_searchTimer-> isActive ()) {
379
- _searchTimer-> start ();
377
+ if (!_searchTimer. isActive ()) {
378
+ _searchTimer. start ();
380
379
}
381
380
}
382
381
0 commit comments