Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
#include <QFileDialog>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QDebug>
|
||||
#include "shopservice.h"
|
||||
#include "shop-odb.hxx"
|
||||
|
||||
#include "../shopservice.h"
|
||||
|
||||
ShopSettingsForm::ShopSettingsForm(QWidget *parent) :
|
||||
FormBinder<ShopSettings>(parent),
|
||||
@@ -58,7 +56,7 @@ ShopSettingsForm::ShopSettingsForm(QWidget *parent) :
|
||||
<< ComboData(Enums::SECOND_LOWER, tr("Second lower"));
|
||||
registerBinding(ui->defaultVat, listVatTypes);
|
||||
|
||||
m_itemModel = new AutoTableModel<ShopItem>();
|
||||
m_itemModel = new AutoTableModel<IShopItem>(this);
|
||||
}
|
||||
|
||||
ShopSettingsForm::~ShopSettingsForm()
|
||||
@@ -99,7 +97,7 @@ void ShopSettingsForm::drawButtons()
|
||||
});
|
||||
|
||||
connect(btn, &FavButton::itemDropped, [this, btn](){
|
||||
ShopItemPtr item = m_itemModel->itemFromIndex(ui->tableItems->currentIndex());
|
||||
IShopItemPtr item = m_itemModel->itemFromIndex(ui->tableItems->currentIndex());
|
||||
FavoritItemPtr favItem = QSharedPointer<FavoritItem>(new FavoritItem);
|
||||
favItem->setFavButtonName(btn->objectName());
|
||||
favItem->setName(item->name());
|
||||
|
||||
Reference in New Issue
Block a user