Fix a bug : alignment not reset after a new operation was inserted

This commit is contained in:
Grégory Soutadé 2012-05-31 20:02:34 +02:00
parent e60cabc0ff
commit cca1149265
4 changed files with 49 additions and 41 deletions

Binary file not shown.

View File

@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-05-22 21:27+0200\n"
"POT-Creation-Date: 2012-05-31 19:54+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: Soutadé <soutade@gmail.com>\n"
"Language-Team: \n"
@ -42,7 +42,7 @@ msgid " and "
msgstr " et "
#: src/view/SnapshotsDialog.cpp:133
#: src/view/SnapshotsDialog.cpp:165
#: src/view/SnapshotsDialog.cpp:167
msgid " does not exist"
msgstr " n'existe pas"
@ -60,7 +60,7 @@ msgstr " doit avoir un nom"
msgid " not found, aborting"
msgstr " non trouvé, arrêt"
#: src/view/AccountPanel.cpp:942
#: src/view/AccountPanel.cpp:941
msgid " operations ?"
msgstr " opérations ?"
@ -132,7 +132,7 @@ msgstr "Numéro de compte"
msgid "Accounts"
msgstr "Comptes"
#: src/view/AccountPanel.cpp:1174
#: src/view/AccountPanel.cpp:1173
msgid "Accounts updated until "
msgstr "Comptes mis à jours jusqu'à "
@ -148,7 +148,7 @@ msgstr "Montant min"
msgid "Amount to"
msgstr "Montant max"
#: src/view/AccountPanel.cpp:1179
#: src/view/AccountPanel.cpp:1178
msgid "Any account updated !"
msgstr "Aucun compte mis à jour"
@ -157,12 +157,12 @@ msgstr "Aucun compte mis à jour"
msgid "Any engine can process this file !"
msgstr "Format de fichier non reconnu"
#: src/view/SnapshotsDialog.cpp:169
#: src/view/SnapshotsDialog.cpp:171
msgid "Are you sure want to come back to "
msgstr "êtes vous sûr de vouloir revenir à "
#: src/view/SnapshotsDialog.cpp:137
#: src/view/AccountPanel.cpp:937
#: src/view/AccountPanel.cpp:936
msgid "Are you sure want to delete "
msgstr "Etes vous sûr de vouloir supprimer "
@ -294,6 +294,10 @@ msgstr "Confirmer le mot de passe"
msgid "Cost repartition"
msgstr "Répartition des coûts"
#: src/view/SnapshotsDialog.cpp:41
msgid "Create a snapshot"
msgstr "Faire une sauvegarde"
#: src/view/ImportPanel.cpp:181
#: src/view/ImportPanel.cpp:211
#: src/view/ImportPanel.cpp:255
@ -303,10 +307,6 @@ msgstr "Répartition des coûts"
msgid "Create one"
msgstr "En créer un"
#: src/view/SnapshotsDialog.cpp:41
msgid "Create snapshot"
msgstr "Faire une sauvegarde"
#: src/view/grid/GridAccount.cpp:73
msgid "Credit"
msgstr "Crédit"
@ -353,12 +353,12 @@ msgstr "Impossible de cacher le compte par défaut"
#: src/view/PreferencesPanel.cpp:222
#: src/view/PreferencesPanel.cpp:357
#: src/view/AccountPanel.cpp:795
#: src/view/AccountPanel.cpp:794
msgid "Delete"
msgstr "Supprimer"
#: src/view/SnapshotsDialog.cpp:42
msgid "Delete snapshot"
msgid "Delete a snapshot"
msgstr "Supprimer la sauvegarde"
#: src/view/PreferencesPanel.cpp:477
@ -384,8 +384,8 @@ msgstr "Nouvelle description"
#: src/view/SnapshotsDialog.cpp:117
#: src/view/SnapshotsDialog.cpp:133
#: src/view/SnapshotsDialog.cpp:142
#: src/view/SnapshotsDialog.cpp:165
#: src/view/SnapshotsDialog.cpp:174
#: src/view/SnapshotsDialog.cpp:167
#: src/view/SnapshotsDialog.cpp:176
#: src/view/ImportPanel.cpp:170
#: src/view/ImportPanel.cpp:304
#: src/view/ImportPanel.cpp:328
@ -405,7 +405,7 @@ msgstr "Nouvelle description"
#: src/view/PreferencesPanel.cpp:1150
#: src/view/PasswordDialog.cpp:64
#: src/view/PasswordDialog.cpp:70
#: src/view/AccountPanel.cpp:933
#: src/view/AccountPanel.cpp:932
#: src/view/grid/GridAccount.cpp:1298
#: src/view/grid/GridAccount.cpp:1311
#: src/view/grid/GridAccount.cpp:1442
@ -476,7 +476,7 @@ msgid "From "
msgstr "A partir de "
#: src/view/GenerateDialog.cpp:33
#: src/view/AccountPanel.cpp:792
#: src/view/AccountPanel.cpp:791
msgid "Generate month"
msgstr "Générer mois"
@ -560,7 +560,7 @@ msgstr "Intervalle de temps invalide"
msgid "It must be at least one account !"
msgstr "Il doit y avoir au moins un compte !"
#: src/view/AccountPanel.cpp:933
#: src/view/AccountPanel.cpp:932
msgid "It must be at least one month !"
msgstr "Il doit rester au moins un mois"
@ -671,7 +671,7 @@ msgstr "Non rapprochée"
msgid "Number"
msgstr "Numéro de compte"
#: src/model/import/OFXImportEngine.cpp:141
#: src/model/import/OFXImportEngine.cpp:144
msgid "OFX files (*.ofx)"
msgstr "Fichiers OFX (*.ofx)"
@ -822,7 +822,7 @@ msgid "Unable to open database"
msgstr "Impossible d'ouvrir la base de données"
#: src/view/SnapshotsDialog.cpp:142
#: src/view/SnapshotsDialog.cpp:174
#: src/view/SnapshotsDialog.cpp:176
msgid "Unable to remove "
msgstr "Impossible de supprimer "
@ -884,7 +884,8 @@ msgstr "Virtuel"
msgid "Warning"
msgstr "Attention"
#: src/view/SnapshotsDialog.cpp:185
#: src/view/SnapshotsDialog.cpp:193
#: src/view/SnapshotsDialog.cpp:203
msgid "Welcome back to "
msgstr "Bienvenue sur "

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-05-22 21:27+0200\n"
"POT-Creation-Date: 2012-05-31 19:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -36,7 +36,7 @@ msgstr ""
msgid " and "
msgstr ""
#: src/view/SnapshotsDialog.cpp:133 src/view/SnapshotsDialog.cpp:165
#: src/view/SnapshotsDialog.cpp:133 src/view/SnapshotsDialog.cpp:167
msgid " does not exist"
msgstr ""
@ -52,7 +52,7 @@ msgstr ""
msgid " not found, aborting"
msgstr ""
#: src/view/AccountPanel.cpp:942
#: src/view/AccountPanel.cpp:941
msgid " operations ?"
msgstr ""
@ -119,7 +119,7 @@ msgstr ""
msgid "Accounts"
msgstr ""
#: src/view/AccountPanel.cpp:1174
#: src/view/AccountPanel.cpp:1173
msgid "Accounts updated until "
msgstr ""
@ -135,7 +135,7 @@ msgstr ""
msgid "Amount to"
msgstr ""
#: src/view/AccountPanel.cpp:1179
#: src/view/AccountPanel.cpp:1178
msgid "Any account updated !"
msgstr ""
@ -143,11 +143,11 @@ msgstr ""
msgid "Any engine can process this file !"
msgstr ""
#: src/view/SnapshotsDialog.cpp:169
#: src/view/SnapshotsDialog.cpp:171
msgid "Are you sure want to come back to "
msgstr ""
#: src/view/SnapshotsDialog.cpp:137 src/view/AccountPanel.cpp:937
#: src/view/SnapshotsDialog.cpp:137 src/view/AccountPanel.cpp:936
msgid "Are you sure want to delete "
msgstr ""
@ -275,16 +275,16 @@ msgstr ""
msgid "Cost repartition"
msgstr ""
#: src/view/SnapshotsDialog.cpp:41
msgid "Create a snapshot"
msgstr ""
#: src/view/ImportPanel.cpp:181 src/view/ImportPanel.cpp:211
#: src/view/ImportPanel.cpp:255 src/view/ImportPanel.cpp:266
#: src/view/ImportPanel.cpp:295 src/view/ImportPanel.cpp:318
msgid "Create one"
msgstr ""
#: src/view/SnapshotsDialog.cpp:41
msgid "Create snapshot"
msgstr ""
#: src/view/grid/GridAccount.cpp:73
msgid "Credit"
msgstr ""
@ -330,12 +330,12 @@ msgid "Default account cannot be hidden"
msgstr ""
#: src/view/PreferencesPanel.cpp:222 src/view/PreferencesPanel.cpp:357
#: src/view/AccountPanel.cpp:795
#: src/view/AccountPanel.cpp:794
msgid "Delete"
msgstr ""
#: src/view/SnapshotsDialog.cpp:42
msgid "Delete snapshot"
msgid "Delete a snapshot"
msgstr ""
#: src/view/PreferencesPanel.cpp:477
@ -355,7 +355,7 @@ msgstr ""
#: src/view/SearchBanner.cpp:166 src/view/SearchBanner.cpp:179
#: src/view/SearchBanner.cpp:188 src/view/SnapshotsDialog.cpp:117
#: src/view/SnapshotsDialog.cpp:133 src/view/SnapshotsDialog.cpp:142
#: src/view/SnapshotsDialog.cpp:165 src/view/SnapshotsDialog.cpp:174
#: src/view/SnapshotsDialog.cpp:167 src/view/SnapshotsDialog.cpp:176
#: src/view/ImportPanel.cpp:170 src/view/ImportPanel.cpp:304
#: src/view/ImportPanel.cpp:328 src/view/ExportPanel.cpp:125
#: src/view/ExportPanel.cpp:138 src/view/ExportPanel.cpp:145
@ -365,7 +365,7 @@ msgstr ""
#: src/view/PreferencesPanel.cpp:1043 src/view/PreferencesPanel.cpp:1065
#: src/view/PreferencesPanel.cpp:1102 src/view/PreferencesPanel.cpp:1108
#: src/view/PreferencesPanel.cpp:1150 src/view/PasswordDialog.cpp:64
#: src/view/PasswordDialog.cpp:70 src/view/AccountPanel.cpp:933
#: src/view/PasswordDialog.cpp:70 src/view/AccountPanel.cpp:932
#: src/view/grid/GridAccount.cpp:1298 src/view/grid/GridAccount.cpp:1311
#: src/view/grid/GridAccount.cpp:1442 src/view/grid/GridAccount.cpp:1448
#: src/view/grid/FormulaDelegate.cpp:59 src/model/Database.cpp:47
@ -424,7 +424,7 @@ msgstr ""
msgid "From "
msgstr ""
#: src/view/GenerateDialog.cpp:33 src/view/AccountPanel.cpp:792
#: src/view/GenerateDialog.cpp:33 src/view/AccountPanel.cpp:791
msgid "Generate month"
msgstr ""
@ -508,7 +508,7 @@ msgstr ""
msgid "It must be at least one account !"
msgstr ""
#: src/view/AccountPanel.cpp:933
#: src/view/AccountPanel.cpp:932
msgid "It must be at least one month !"
msgstr ""
@ -610,7 +610,7 @@ msgstr ""
msgid "Number"
msgstr ""
#: src/model/import/OFXImportEngine.cpp:141
#: src/model/import/OFXImportEngine.cpp:144
msgid "OFX files (*.ofx)"
msgstr ""
@ -740,7 +740,7 @@ msgstr ""
msgid "Unable to open database"
msgstr ""
#: src/view/SnapshotsDialog.cpp:142 src/view/SnapshotsDialog.cpp:174
#: src/view/SnapshotsDialog.cpp:142 src/view/SnapshotsDialog.cpp:176
msgid "Unable to remove "
msgstr ""
@ -796,7 +796,7 @@ msgstr ""
msgid "Warning"
msgstr ""
#: src/view/SnapshotsDialog.cpp:185
#: src/view/SnapshotsDialog.cpp:193 src/view/SnapshotsDialog.cpp:203
msgid "Welcome back to "
msgstr ""

View File

@ -1062,6 +1062,13 @@ void GridAccount::OnOperationModified(int row, int col)
if (fix_cost && i == CATEGORY) continue;
setItem(row, i, new QTableWidgetItem(""));
}
this->item(row, OP_DATE)->setTextAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
this->item(row, DEBIT)->setTextAlignment(Qt::AlignRight|Qt::AlignVCenter);
this->item(row, CREDIT)->setTextAlignment(Qt::AlignRight|Qt::AlignVCenter);
this->item(row, OP_DELETE)->setTextAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
this->item(row, CHECKED)->setTextAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
if (!fix_cost)
{
int day;