Diffstat (limited to 'noncore/apps/checkbook/transaction.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/transaction.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/apps/checkbook/transaction.cpp b/noncore/apps/checkbook/transaction.cpp index 1b08b24..aafb588 100644 --- a/noncore/apps/checkbook/transaction.cpp +++ b/noncore/apps/checkbook/transaction.cpp | |||
@@ -18,34 +18,38 @@ | |||
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "transaction.h" | 29 | #include "transaction.h" |
30 | #include "traninfo.h" | 30 | #include "traninfo.h" |
31 | #include "cfg.h" | 31 | #include "cfg.h" |
32 | #include "checkbook.h" | 32 | #include "checkbook.h" |
33 | 33 | ||
34 | /* OPIE */ | ||
35 | #include <opie2/odebug.h> | ||
34 | #include <qpe/datebookmonth.h> | 36 | #include <qpe/datebookmonth.h> |
37 | using namespace Opie::Core; | ||
35 | 38 | ||
39 | /* QT */ | ||
36 | #include <qbuttongroup.h> | 40 | #include <qbuttongroup.h> |
37 | #include <qcombobox.h> | 41 | #include <qcombobox.h> |
38 | #include <qlabel.h> | 42 | #include <qlabel.h> |
39 | #include <qlayout.h> | 43 | #include <qlayout.h> |
40 | #include <qlineedit.h> | 44 | #include <qlineedit.h> |
41 | #include <qmultilineedit.h> | 45 | #include <qmultilineedit.h> |
42 | #include <qradiobutton.h> | 46 | #include <qradiobutton.h> |
43 | #include <qwhatsthis.h> | 47 | #include <qwhatsthis.h> |
44 | 48 | ||
45 | Transaction::Transaction( QWidget *parent, bool bNew, const QString &acctname, | 49 | Transaction::Transaction( QWidget *parent, bool bNew, const QString &acctname, |
46 | TranInfo *info, Cfg *pCfg ) | 50 | TranInfo *info, Cfg *pCfg ) |
47 | : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) | 51 | : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) |
48 | { | 52 | { |
49 | QString tempstr = tr( "Transaction for " ); | 53 | QString tempstr = tr( "Transaction for " ); |
50 | tempstr.append( acctname ); | 54 | tempstr.append( acctname ); |
51 | setCaption( tempstr ); | 55 | setCaption( tempstr ); |
@@ -319,19 +323,19 @@ void Transaction::slotActivated(const QString &arg ) | |||
319 | if( !_bNew ) return; | 323 | if( !_bNew ) return; |
320 | TranInfoList *pTl=((Checkbook *)parentWidget())->getTranList(); | 324 | TranInfoList *pTl=((Checkbook *)parentWidget())->getTranList(); |
321 | if( pTl ) { | 325 | if( pTl ) { |
322 | TranInfo *pTi=pTl->findMostRecentByDesc( arg ); | 326 | TranInfo *pTi=pTl->findMostRecentByDesc( arg ); |
323 | if( pTi ) { | 327 | if( pTi ) { |
324 | initFromInfo( pTi, true ); | 328 | initFromInfo( pTi, true ); |
325 | amtEdit->setFocus(); | 329 | amtEdit->setFocus(); |
326 | amtEdit->setSelection(0, amtEdit->text().length() ); | 330 | amtEdit->setSelection(0, amtEdit->text().length() ); |
327 | amtEdit->setCursorPosition(0); | 331 | amtEdit->setCursorPosition(0); |
328 | } | 332 | } |
329 | } | 333 | } |
330 | } | 334 | } |
331 | 335 | ||
332 | // slotNotNew ----------------------------------------------------------------- | 336 | // slotNotNew ----------------------------------------------------------------- |
333 | void Transaction::slotNotNew() | 337 | void Transaction::slotNotNew() |
334 | { | 338 | { |
335 | qDebug("Not new"); | 339 | odebug << "Not new" << oendl; |
336 | _bNew=false; | 340 | _bNew=false; |
337 | } | 341 | } |