closes #1: Favorite buttons has been extended with category buttons.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include <service.h>
|
||||
#include <settingsservice.h>
|
||||
|
||||
#include "coloritemdelegate.h"
|
||||
|
||||
CommoditySettingsForm::CommoditySettingsForm(QWidget *parent) :
|
||||
FormBinder<CommoditySettings>(parent),
|
||||
ui(new Ui::CommoditySettingsForm)
|
||||
@@ -13,9 +15,10 @@ CommoditySettingsForm::CommoditySettingsForm(QWidget *parent) :
|
||||
registerBinding(ui->codeAsNumber);
|
||||
|
||||
m_table = new AutoTableModel<CommodityTypeData>();
|
||||
m_table->setEditableCols(QList<int>() << 0);
|
||||
m_table->setEditableCols(QList<int>() << 0 << 1);
|
||||
ui->commodityTypesTable->setModel(m_table);
|
||||
ui->commodityTypesTable->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
|
||||
ui->commodityTypesTable->setItemDelegateForColumn(1, new ColorItemDelegate(this));
|
||||
}
|
||||
|
||||
CommoditySettingsForm::~CommoditySettingsForm()
|
||||
|
||||
Reference in New Issue
Block a user