migrate to QAD v2

This commit is contained in:
2021-03-05 13:06:25 +03:00
parent d6734e1954
commit 5d1e42601a
4 changed files with 15 additions and 15 deletions

View File

@@ -187,7 +187,7 @@ bool QCDCore::bindWidget(QWidget * w, const CDType & k) {
void QCDCore::updateBindedWidgets() {
QMapIterator<QWidget * , PIDeque<int> > it(binded_widgets);
QMultiMapIterator<QWidget * , PIDeque<int> > it(binded_widgets);
QWidgetList to_remove;
updating = true;
while (it.hasNext()) {
@@ -274,10 +274,8 @@ bool QCDCore::unbindWidget(QWidget * w) {
void QCDCore::unbindAllWidgets() {
QMap<QWidget * , PIDeque<int> > bwm = binded_widgets;
QMapIterator<QWidget * , PIDeque<int> > it(bwm);
while (it.hasNext()) {
QWidget * w = it.next().key();
QList<QWidget * > bwk = binded_widgets.keys();
foreach (QWidget * w, bwk) {
unbindWidget(w);
}
binded_widgets.clear();
@@ -285,7 +283,7 @@ void QCDCore::unbindAllWidgets() {
void QCDCore::updateBindedWidget(const CDType & k_) {
QMapIterator<QWidget * , PIDeque<int> > it(binded_widgets);
QMultiMapIterator<QWidget * , PIDeque<int> > it(binded_widgets);
updating = true;
while (it.hasNext()) {
QWidget * w = it.next().key();