summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-11-19 10:13:20 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-11-21 16:07:56 +0000
commit31b48ac93a7521e93e11658c5ab6f7d2b539a8d3 (patch)
treea3da67a0766cd5e7ac89faf543655b20ddd4ae49 /src/shared
parent6f010a672c1248bdfb0bd2f533e69d2cf13a5516 (diff)
Qt Designer: Port away from deprecated QTreeWidget::setItemExpanded()/isExpanded()
qtbase/76bb804405f424708fffec502788995ea91206b8 deprecates those functions in favor of QTreeWidgetItem::setExpanded()/isExpanded(). Change-Id: I2949ceb5634bb90dced2a482c20b7a2f3be08d48 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/qtpropertybrowser/qttreepropertybrowser.cpp2
-rw-r--r--src/shared/qttoolbardialog/qttoolbardialog.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/qtpropertybrowser/qttreepropertybrowser.cpp b/src/shared/qtpropertybrowser/qttreepropertybrowser.cpp
index 9bc5e4f21..54e28c1ae 100644
--- a/src/shared/qtpropertybrowser/qttreepropertybrowser.cpp
+++ b/src/shared/qtpropertybrowser/qttreepropertybrowser.cpp
@@ -550,7 +550,7 @@ void QtTreePropertyBrowserPrivate::propertyInserted(QtBrowserItem *index, QtBrow
m_indexToItem[index] = newItem;
newItem->setFlags(newItem->flags() | Qt::ItemIsEditable);
- m_treeWidget->setItemExpanded(newItem, true);
+ newItem->setExpanded(true);
updateItem(newItem);
}
diff --git a/src/shared/qttoolbardialog/qttoolbardialog.cpp b/src/shared/qttoolbardialog/qttoolbardialog.cpp
index e082acc24..cedef9bf5 100644
--- a/src/shared/qttoolbardialog/qttoolbardialog.cpp
+++ b/src/shared/qttoolbardialog/qttoolbardialog.cpp
@@ -1111,7 +1111,7 @@ void QtToolBarDialogPrivate::fillNew()
}
item->setFlags(item->flags() | Qt::ItemIsDragEnabled);
}
- ui.actionTree->setItemExpanded(categoryItem, true);
+ categoryItem->setExpanded(true);
}
//ui.actionTree->sortItems(0, Qt::AscendingOrder);