KissCount

KissCount Commit Details

Date:2018-10-07 12:18:57 (1 year 12 days ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:0a80a781a75807f131c9fa3114acc6611f8cb02a
Parents: ec3ac0a8b46724249c89a61891d974730c319370
Message:Add ctrl+r shortcut to check/uncheck operations

Changes:
MChangeLog (1 diff)
Msrc/view/grid/GridAccount.cpp (2 diffs)
Msrc/view/grid/GridAccount.hpp (2 diffs)

File differences

ChangeLog
33
44
55
6
67
78
89
Add multi month operation support : Normal operation with description "... (XX/YY)" will be forwarded to next month
Auto fill operation amount if it was the same for the last 3 operations
Add quick transfert dialog (ctrl+t shortcut)
Add ctrl+r shortcut to check/uncheck operations
** Dev **
** Bugs **
Current account value is badly computed if operations are not in date order
src/view/grid/GridAccount.cpp
125125
126126
127127
128
128129
130
131
129132
130133
131134
......
17111714
17121715
17131716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
connect(this, SIGNAL(cellChanged(int, int)), this, SLOT(OnOperationModified(int, int)));
if (canAddOperation)
{
_ctrlT = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_T), this, SLOT(OnCtrlT()));
_ctrlR = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_R), this, SLOT(OnCtrlR()));
}
}
GridAccount::~GridAccount()
}
}
}
void GridAccount::OnCtrlR(void)
{
QModelIndexList selected = selectedIndexes();
std::vector<int> rows;
std::vector<int>::iterator it;
int row;
for (int i = 0; i < selected.size(); ++i)
{
row = selected[i].row();
it = std::find(rows.begin(), rows.end(), row);
if (it != rows.end())
continue;
OnCheckClicked(_displayedOperations[row].id);
rows.push_back(row);
}
}
src/view/grid/GridAccount.hpp
7272
7373
7474
75
7576
7677
7778
......
8889
8990
9091
91
92
9293
9394
9495
void OnCheckClicked(int id);
void OnDeleteClicked(int id);
void OnCtrlT(void);
void OnCtrlR(void);
private:
KissPanel* _parent;
bool _inModification;
QCompleter* _completer;
int _transfertCompletionIndex;
QShortcut* _ctrlT;
QShortcut* _ctrlT, *_ctrlR;
void SetWeek(int week, int line);
void ResetWeeks();

Archive Download the corresponding diff file