- feature: click group will open its first page in the settings dialog
This commit is contained in:
parent
1684f9a71d
commit
1fa94b34d0
|
@ -134,6 +134,10 @@ void SettingsDialog::on_widgetsView_clicked(const QModelIndex &index)
|
||||||
ui->lblWidgetCaption->setText(QString("%1 > %2").arg(pWidget->group()).arg(pWidget->name()));
|
ui->lblWidgetCaption->setText(QString("%1 > %2").arg(pWidget->group()).arg(pWidget->name()));
|
||||||
|
|
||||||
ui->btnApply->setEnabled(false);
|
ui->btnApply->setEnabled(false);
|
||||||
|
} else if (model.hasChildren(index)) {
|
||||||
|
ui->widgetsView->expand(index);
|
||||||
|
QModelIndex childIndex = this->model.index(0,0,index);
|
||||||
|
emit ui->widgetsView->clicked(childIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue