| 159 | } |
| 160 | |
| 161 | void VariableChooserPrivate::initConnect() |
| 162 | { |
| 163 | connect(iconButton, &DIconButton::clicked, this, &VariableChooserPrivate::show); |
| 164 | connect(qobject_cast<QApplication *>(qApp), &QApplication::focusChanged, |
| 165 | this, &VariableChooserPrivate::updateCurrentEditor); |
| 166 | connect(searchEdit, &DSearchEdit::textChanged, this, &VariableChooserPrivate::updateFilter); |
| 167 | connect(treeView, &QTreeView::activated, this, &VariableChooserPrivate::handleItemActivated); |
| 168 | connect(treeView->selectionModel(), &QItemSelectionModel::currentChanged, this, &VariableChooserPrivate::updateDescription); |
| 169 | } |
| 170 | |
| 171 | void VariableChooserPrivate::show() |
| 172 | { |
no test coverage detected