Add ImportPanel
Throw exception when category/account are not found in User Fix a bug in GrisbiImportEngine with QDate::fromString Try to search an account also with its name Remove categories number limit (only used for pie color)
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
#include "FormulaDelegate.hpp"
|
||||
#include "TabDelegate.hpp"
|
||||
|
||||
enum {TREE, DESCRIPTION, OP_DATE, DEBIT, CREDIT, CATEGORY, ACCOUNT, OP_DELETE, CHECKED, NUMBER_COLS_OPS};
|
||||
|
||||
#define SET_ROW_COLOR(row, backcolor, forecolor) for(int i=0; i<NUMBER_COLS_OPS; i++) \
|
||||
{ \
|
||||
if (!this->item(row, i)) setItem(row, i, new QTableWidgetItem("")); \
|
||||
@@ -75,7 +73,6 @@ GridAccount::GridAccount(KissCount* kiss, QWidget *parent,
|
||||
for(i=0; i<NUMBER_COLS_OPS; i++)
|
||||
{
|
||||
item = new QTableWidgetItem(colsName[i]);
|
||||
item->setText(colsName[i]);
|
||||
item->setBackground(view::OWN_CYAN);
|
||||
item->setFont(font);
|
||||
SET_READ_ONLY(item);
|
||||
|
||||
@@ -41,6 +41,8 @@ class GridAccount : public QTableWidget
|
||||
public:
|
||||
class OperationNotFound {};
|
||||
|
||||
enum {TREE, DESCRIPTION, OP_DATE, DEBIT, CREDIT, CATEGORY, ACCOUNT, OP_DELETE, CHECKED, NUMBER_COLS_OPS};
|
||||
|
||||
GridAccount(KissCount* kiss, QWidget *parent,
|
||||
bool canAddOperation, bool setWeek, bool synchronizeWithDatabase);
|
||||
~GridAccount();
|
||||
|
||||
Reference in New Issue
Block a user