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

View File

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

View File

@ -1062,6 +1062,13 @@ void GridAccount::OnOperationModified(int row, int col)
if (fix_cost && i == CATEGORY) continue; if (fix_cost && i == CATEGORY) continue;
setItem(row, i, new QTableWidgetItem("")); 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) if (!fix_cost)
{ {
int day; int day;