hsoft / moneyguru (http://hardcoded.net/moneyguru)
Future-aware personal finance application for Mac OS X and Windows.
| commit 977: | 1eeb322c219b |
| parent 976: | f5ecd68b5f65 |
| branch: | default |
Changed (Δ542 bytes):
.hgsubstate (1 lines added, 1 lines removed)
qt/controller/account/table.py (0 lines added, 3 lines removed)
qt/controller/schedule/table.py (1 lines added, 1 lines removed)
qt/controller/table.py (5 lines added, 0 lines removed)
qt/controller/transaction/table.py (2 lines added, 6 lines removed)
qt/support/completable_edit.py (1 lines added, 1 lines removed)
| … | … | @@ -3,4 +3,4 @@ eebeb0893293380fa2703cd34025e741a3fbe51e |
3 |
3 |
552cbd427810cdb74f597b3121f08e3c4d0cb161 hscommon |
4 |
4 |
af34039a30fefea74169899b5b13afd3a02abff6 hsgui |
5 |
5 |
c041f2894c699aa6b182213c3690d409227b1e5d psmtabbarcontrol |
6 |
|
|
6 |
7aca32e73321b1225570f15d37f00e4d3c65ef3a qtlib |
Up to file-list qt/controller/account/table.py:
| … | … | @@ -99,9 +99,6 @@ class EntryTable(TableWithTransactions): |
99 |
99 |
if row.can_reconcile() and row.reconciled: |
100 |
100 |
row.toggle_reconciled() |
101 |
101 |
|
102 |
def headerSectionMoved(self, logicalIndex, oldVisualIndex, newVisualIndex): |
|
103 |
self.model.change_columns(self.visibleRowAttrs()) |
|
104 |
||
105 |
102 |
#--- model --> view |
106 |
103 |
def refresh(self): |
107 |
104 |
TableWithTransactions.refresh(self) |
Up to file-list qt/controller/schedule/table.py:
| … | … | @@ -23,7 +23,7 @@ class ScheduleTable(Table): |
23 |
23 |
Column('description', tr('Description'), 110), |
24 |
24 |
Column('payee', tr('Payee'), 110), |
25 |
25 |
Column('checkno', tr('Check #'), 70), |
26 |
Column('from |
|
26 |
Column('from', tr('From'), 100), |
|
27 |
27 |
Column('to', tr('To'), 100), |
28 |
28 |
Column('amount', tr('Amount'), 97, alignment=Qt.AlignRight), |
29 |
29 |
] |
Up to file-list qt/controller/table.py:
| … | … | @@ -48,3 +48,8 @@ class Table(TableBase): |
48 |
48 |
self.tableDelegate = TableDelegate(self.model, self.COLUMNS) |
49 |
49 |
self.view.setItemDelegate(self.tableDelegate) |
50 |
50 |
|
51 |
#--- Event Handling |
|
52 |
def headerSectionMoved(self, logicalIndex, oldVisualIndex, newVisualIndex): |
|
53 |
attrname = self.COLUMNS[logicalIndex].attrname |
|
54 |
self.model.columns.move_column(attrname, newVisualIndex) |
|
55 |
Up to file-list qt/controller/transaction/table.py:
| … | … | @@ -29,7 +29,7 @@ class TransactionTableDelegate(TableDele |
29 |
29 |
|
30 |
30 |
def _get_decorations(self, index, isSelected): |
31 |
31 |
column = self._columns[index.column()] |
32 |
if column.attrname == 'from |
|
32 |
if column.attrname == 'from': |
|
33 |
33 |
return [self._decoFromArrowSelected if isSelected else self._decoFromArrow] |
34 |
34 |
elif column.attrname == 'to': |
35 |
35 |
return [self._decoToArrowSelected if isSelected else self._decoToArrow] |
| … | … | @@ -44,7 +44,7 @@ class TransactionTable(TableWithTransact |
44 |
44 |
Column('description', tr('Description'), 230, editor=DESCRIPTION_EDIT), |
45 |
45 |
Column('payee', tr('Payee'), 150, editor=PAYEE_EDIT), |
46 |
46 |
Column('checkno', tr('Check #'), 80), |
47 |
Column('from |
|
47 |
Column('from', tr('From'), 120, editor=ACCOUNT_EDIT), |
|
48 |
48 |
Column('to', tr('To'), 120, editor=ACCOUNT_EDIT), |
49 |
49 |
Column('amount', tr('Amount'), 100, alignment=Qt.AlignRight), |
50 |
50 |
] |
| … | … | @@ -65,7 +65,3 @@ class TransactionTable(TableWithTransact |
65 |
65 |
TableWithTransactions.setHiddenColumns(self, hiddenColumns) |
66 |
66 |
self.model.change_columns(self.visibleRowAttrs()) |
67 |
67 |
|
68 |
#--- Event Handling |
|
69 |
def headerSectionMoved(self, logicalIndex, oldVisualIndex, newVisualIndex): |
|
70 |
self.model.change_columns(self.visibleRowAttrs()) |
|
71 |
Up to file-list qt/support/completable_edit.py:
| … | … | @@ -28,7 +28,7 @@ class CompletableEdit(QLineEdit): |
28 |
28 |
if self.selectionStart() == -1: |
29 |
29 |
return unicode(self.text()) |
30 |
30 |
else: |
31 |
return unicode(self.text() |
|
31 |
return unicode(self.text())[:self.selectionStart()] |
|
32 |
32 |
|
33 |
33 |
#--- QLineEdit overrides |
34 |
34 |
def focusInEvent(self, event): |
