@ -103,6 +103,13 @@ void ShopForm::loadButtons()
Service<FavoritItem> srvFav;
QMap<QString, FavoritItemPtr> btnMap;
foreach (QWidget *child, ui->favorites->findChildren<QWidget*>()) {
if (child->objectName() != "directSale")
{
delete child;
}
foreach (FavoritItemPtr item, srvFav.all()) {
btnMap[item->favButtonName()] = item;
@ -50,6 +50,12 @@
</item>
<item>
<widget class="QTableView" name="commodityTable">
<property name="minimumSize">
<size>
<width>400</width>
<height>0</height>
</size>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>