fix some warnings

This commit is contained in:
2020-09-08 15:10:26 +03:00
parent 17e38bc821
commit 9f15039f64
6 changed files with 10 additions and 10 deletions

View File

@@ -249,11 +249,11 @@ void Delegate::changedFlag() {
int row = 0;
qulonglong val = 0;
QList<QModelIndex> chldr;
mi = p.child(row, 1);
mi = model->index(row, 1, p);
while (mi.isValid()) {
chldr << mi;
model->setData(mi, !mi.data(Qt::UserRole + 4).toBool(), Qt::UserRole + 4);
mi = p.child(++row, 1);
mi = model->index(++row, 1, p);
}
bool cc = cmi.data(Qt::UserRole + 3).toBool();
qulonglong cv = cmi.data(Qt::UserRole).toULongLong();
@@ -377,7 +377,7 @@ void PropertyEditor::rebuild() {
setItemBackColor(tli, Qt::darkGray);
setItemForeColor(tli, Qt::white);
addTopLevelItem(tli);
setFirstItemColumnSpanned(tli, true);
tli->setFirstColumnSpanned(true);
tli->setExpanded(true);
for (int i = ps; i < pe; ++i) {
props << o->property(i);