respect an hardcoded default checked button
This commit is contained in:
parent
b1e8b8bb5c
commit
a7effaa7c4
@ -49,6 +49,7 @@ function create(that, options) {
|
|||||||
self = that;
|
self = that;
|
||||||
direction = options.direction || Qt.Horizontal;
|
direction = options.direction || Qt.Horizontal;
|
||||||
self.childrenChanged.connect(rebuild);
|
self.childrenChanged.connect(rebuild);
|
||||||
|
self.exclusiveChanged.connect(rebuild);
|
||||||
// self.widthChanged.connect(resizeChildren);
|
// self.widthChanged.connect(resizeChildren);
|
||||||
build();
|
build();
|
||||||
}
|
}
|
||||||
@ -88,7 +89,6 @@ function build() {
|
|||||||
item.checkable = true;
|
item.checkable = true;
|
||||||
|
|
||||||
if (self.exclusive) {
|
if (self.exclusive) {
|
||||||
item.checked = false;
|
|
||||||
checkHandlers.push(checkExclusive(item));
|
checkHandlers.push(checkExclusive(item));
|
||||||
item.checkedChanged.connect(checkHandlers[checkHandlers.length - 1]);
|
item.checkedChanged.connect(checkHandlers[checkHandlers.length - 1]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user