Ref T111, created aircraft parts form to be used in internals and dummy driver

This commit is contained in:
Klaus Basan
2017-08-05 00:46:50 +02:00
committed by Mathew Sutcliffe
parent 7939fd0184
commit eea6039d58
5 changed files with 559 additions and 1 deletions

View File

@@ -211,6 +211,16 @@ namespace BlackGui
}
}
void CGuiUtility::checkBoxesReadOnly(QWidget *parent, bool readOnly)
{
if (!parent) { return; }
QList<QCheckBox *> allCheckBoxes = parent->findChildren<QCheckBox *>();
for (QCheckBox *cb : allCheckBoxes)
{
CGuiUtility::checkBoxReadOnly(cb, readOnly);
}
}
QWidgetList CGuiUtility::topLevelApplicationWidgetsWithName()
{
QWidgetList tlw = QApplication::topLevelWidgets();