EComboBox and StringListEdit improvments
This commit is contained in:
@@ -231,11 +231,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();
|
||||
@@ -358,8 +358,8 @@ void PropertyEditor::rebuild() {
|
||||
tli->setFont(0, font_b);
|
||||
setItemBackColor(tli, Qt::darkGray);
|
||||
setItemForeColor(tli, Qt::white);
|
||||
tli->setFirstColumnSpanned(true);
|
||||
addTopLevelItem(tli);
|
||||
setFirstItemColumnSpanned(tli, true);
|
||||
tli->setExpanded(true);
|
||||
for (int i = ps; i < pe; ++i) {
|
||||
props << o->property(i);
|
||||
|
||||
Reference in New Issue
Block a user