refactoring qad widgets part 2

c++ cast, nullptr, forward declaration, agregate ui, connect to member functions, order and clear includes
This commit is contained in:
2022-12-12 10:18:34 +03:00
parent 728c132f2b
commit 4497123421
23 changed files with 837 additions and 500 deletions

View File

@@ -24,7 +24,7 @@ void QPIConfigNewDialog::changeEvent(QEvent * e) {
void QPIConfigNewDialog::typeChanged() {
foreach (QRadioButton * i, radios) {
for (const QRadioButton * i : radios) {
if (i->isChecked()) {
ui->widgetValue->setType(i->property("type").toString());
return;
@@ -34,9 +34,11 @@ void QPIConfigNewDialog::typeChanged() {
QString QPIConfigNewDialog::type() {
foreach (QRadioButton * i, radios)
if (i->isChecked())
for (const QRadioButton * i : radios) {
if (i->isChecked()) {
return i->property("type").toString();
}
}
return " ";
}