summaryrefslogtreecommitdiff
authordrw <drw>2003-07-20 17:00:28 (UTC)
committer drw <drw>2003-07-20 17:00:28 (UTC)
commit2fdb15d45c336bbe1540bd9de6b5bfaea13df163 (patch) (unidiff)
treef17fe43b2aca765412782cee96091b1c134187c5
parent67b69b7aede83ccb0d933dec9bd959f01eb6ea06 (diff)
downloadopie-2fdb15d45c336bbe1540bd9de6b5bfaea13df163.zip
opie-2fdb15d45c336bbe1540bd9de6b5bfaea13df163.tar.gz
opie-2fdb15d45c336bbe1540bd9de6b5bfaea13df163.tar.bz2
Fix for bug #1022 - correct English spelling of electronics
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/transaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/checkbook/transaction.cpp b/noncore/apps/checkbook/transaction.cpp
index 07d5ae1..c94b989 100644
--- a/noncore/apps/checkbook/transaction.cpp
+++ b/noncore/apps/checkbook/transaction.cpp
@@ -191,84 +191,84 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in
191 while ( i > 0 ) 191 while ( i > 0 )
192 { 192 {
193 i--; 193 i--;
194 typeList->setCurrentItem( i ); 194 typeList->setCurrentItem( i );
195 if ( typeList->currentText() == temptext ) 195 if ( typeList->currentText() == temptext )
196 { 196 {
197 break; 197 break;
198 } 198 }
199 } 199 }
200 amtEdit->setText( QString( "%1" ).arg( info->amount(), 0, 'f', 2 ) ); 200 amtEdit->setText( QString( "%1" ).arg( info->amount(), 0, 'f', 2 ) );
201 feeEdit->setText( QString( "%1" ).arg( info->fee(), 0, 'f', 2 ) ); 201 feeEdit->setText( QString( "%1" ).arg( info->fee(), 0, 'f', 2 ) );
202 noteEdit->setText( info->notes() ); 202 noteEdit->setText( info->notes() );
203 } 203 }
204 else 204 else
205 { 205 {
206 withBtn->setChecked( TRUE ); 206 withBtn->setChecked( TRUE );
207 } 207 }
208} 208}
209 209
210Transaction::~Transaction() 210Transaction::~Transaction()
211{ 211{
212} 212}
213 213
214void Transaction::accept() 214void Transaction::accept()
215{ 215{
216 tran->setDesc( descEdit->text() ); 216 tran->setDesc( descEdit->text() );
217 tran->setDate( datePicker->selectedDate() ); 217 tran->setDate( datePicker->selectedDate() );
218 tran->setWithdrawal( withBtn->isChecked() ); 218 tran->setWithdrawal( withBtn->isChecked() );
219 tran->setType( typeList->currentText() ); 219 tran->setType( typeList->currentText() );
220 tran->setCategory( catList->currentText() ); 220 tran->setCategory( catList->currentText() );
221 bool ok; 221 bool ok;
222 tran->setAmount( amtEdit->text().toFloat( &ok ) ); 222 tran->setAmount( amtEdit->text().toFloat( &ok ) );
223 tran->setFee( feeEdit->text().toFloat( &ok ) ); 223 tran->setFee( feeEdit->text().toFloat( &ok ) );
224 tran->setNumber( numEdit->text() ); 224 tran->setNumber( numEdit->text() );
225 tran->setNotes( noteEdit->text() ); 225 tran->setNotes( noteEdit->text() );
226 226
227 QDialog::accept(); 227 QDialog::accept();
228} 228}
229 229
230void Transaction::slotWithdrawalClicked() 230void Transaction::slotWithdrawalClicked()
231{ 231{
232 catList->clear(); 232 catList->clear();
233 catList->insertItem( tr( "Automobile" ) ); 233 catList->insertItem( tr( "Automobile" ) );
234 catList->insertItem( tr( "Bills" ) ); 234 catList->insertItem( tr( "Bills" ) );
235 catList->insertItem( tr( "CDs" ) ); 235 catList->insertItem( tr( "CDs" ) );
236 catList->insertItem( tr( "Clothing" ) ); 236 catList->insertItem( tr( "Clothing" ) );
237 catList->insertItem( tr( "Computer" ) ); 237 catList->insertItem( tr( "Computer" ) );
238 catList->insertItem( tr( "DVDs" ) ); 238 catList->insertItem( tr( "DVDs" ) );
239 catList->insertItem( tr( "Eletronics" ) ); 239 catList->insertItem( tr( "Electronics" ) );
240 catList->insertItem( tr( "Entertainment" ) ); 240 catList->insertItem( tr( "Entertainment" ) );
241 catList->insertItem( tr( "Food" ) ); 241 catList->insertItem( tr( "Food" ) );
242 catList->insertItem( tr( "Gasoline" ) ); 242 catList->insertItem( tr( "Gasoline" ) );
243 catList->insertItem( tr( "Misc" ) ); 243 catList->insertItem( tr( "Misc" ) );
244 catList->insertItem( tr( "Movies" ) ); 244 catList->insertItem( tr( "Movies" ) );
245 catList->insertItem( tr( "Rent" ) ); 245 catList->insertItem( tr( "Rent" ) );
246 catList->insertItem( tr( "Travel" ) ); 246 catList->insertItem( tr( "Travel" ) );
247 catList->setCurrentItem( 0 ); 247 catList->setCurrentItem( 0 );
248 typeList->clear(); 248 typeList->clear();
249 typeList->insertItem( tr( "Debit Charge" ) ); 249 typeList->insertItem( tr( "Debit Charge" ) );
250 typeList->insertItem( tr( "Written Check" ) ); 250 typeList->insertItem( tr( "Written Check" ) );
251 typeList->insertItem( tr( "Transfer" ) ); 251 typeList->insertItem( tr( "Transfer" ) );
252 typeList->insertItem( tr( "Credit Card" ) ); 252 typeList->insertItem( tr( "Credit Card" ) );
253} 253}
254 254
255void Transaction::slotDepositClicked() 255void Transaction::slotDepositClicked()
256{ 256{
257 catList->clear(); 257 catList->clear();
258 catList->insertItem( tr( "Work" ) ); 258 catList->insertItem( tr( "Work" ) );
259 catList->insertItem( tr( "Family Member" ) ); 259 catList->insertItem( tr( "Family Member" ) );
260 catList->insertItem( tr( "Misc. Credit" ) ); 260 catList->insertItem( tr( "Misc. Credit" ) );
261 catList->setCurrentItem( 0 ); 261 catList->setCurrentItem( 0 );
262 typeList->clear(); 262 typeList->clear();
263 typeList->insertItem( tr( "Written Check" ) ); 263 typeList->insertItem( tr( "Written Check" ) );
264 typeList->insertItem( tr( "Automatic Payment" ) ); 264 typeList->insertItem( tr( "Automatic Payment" ) );
265 typeList->insertItem( tr( "Transfer" ) ); 265 typeList->insertItem( tr( "Transfer" ) );
266 typeList->insertItem( tr( "Cash" ) ); 266 typeList->insertItem( tr( "Cash" ) );
267} 267}
268 268
269void Transaction::slotDateChanged( int y, int m, int d ) 269void Transaction::slotDateChanged( int y, int m, int d )
270{ 270{
271 QDate date; 271 QDate date;
272 date.setYMD( y, m, d ); 272 date.setYMD( y, m, d );
273 dateBtn->setText( TimeString::shortDate( date ) ); 273 dateBtn->setText( TimeString::shortDate( date ) );
274} 274}