summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney
Unidiff
Diffstat (limited to 'noncore/apps/qashmoney') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/account.cpp2
-rwxr-xr-xnoncore/apps/qashmoney/accountdisplay.cpp2
-rwxr-xr-xnoncore/apps/qashmoney/budgetdisplay.cpp3
-rwxr-xr-xnoncore/apps/qashmoney/newaccount.cpp3
-rwxr-xr-xnoncore/apps/qashmoney/newtransaction.cpp2
-rwxr-xr-xnoncore/apps/qashmoney/preferencedialogs.cpp1
-rwxr-xr-xnoncore/apps/qashmoney/transactiondisplay.cpp3
-rwxr-xr-xnoncore/apps/qashmoney/transferdialog.cpp2
8 files changed, 0 insertions, 18 deletions
diff --git a/noncore/apps/qashmoney/account.cpp b/noncore/apps/qashmoney/account.cpp
index 181be23..f21598e 100755
--- a/noncore/apps/qashmoney/account.cpp
+++ b/noncore/apps/qashmoney/account.cpp
@@ -1,15 +1,13 @@
1#include "account.h" 1#include "account.h"
2#include "transaction.h"
3#include "transfer.h"
4#include "preferences.h" 2#include "preferences.h"
5 3
6#include <qpixmap.h> 4#include <qpixmap.h>
7#include <stdlib.h> 5#include <stdlib.h>
8 6
9extern Preferences *preferences; 7extern Preferences *preferences;
10 8
11Account::Account () 9Account::Account ()
12 { 10 {
13 adb = sqlite_open ( "qmaccounts.db", 0, NULL ); 11 adb = sqlite_open ( "qmaccounts.db", 0, NULL );
14 } 12 }
15 13
diff --git a/noncore/apps/qashmoney/accountdisplay.cpp b/noncore/apps/qashmoney/accountdisplay.cpp
index d0ba82a..5ef5454 100755
--- a/noncore/apps/qashmoney/accountdisplay.cpp
+++ b/noncore/apps/qashmoney/accountdisplay.cpp
@@ -1,21 +1,19 @@
1#include <qdatetime.h>
2#include <qmessagebox.h> 1#include <qmessagebox.h>
3#include <qheader.h> 2#include <qheader.h>
4 3
5#include "accountdisplay.h" 4#include "accountdisplay.h"
6#include "newaccount.h" 5#include "newaccount.h"
7#include "transaction.h" 6#include "transaction.h"
8#include "transferdialog.h" 7#include "transferdialog.h"
9#include "preferences.h"
10#include "transfer.h" 8#include "transfer.h"
11 9
12extern Account *account; 10extern Account *account;
13extern Transaction *transaction; 11extern Transaction *transaction;
14extern Transfer *transfer; 12extern Transfer *transfer;
15extern Preferences *preferences; 13extern Preferences *preferences;
16 14
17AccountDisplay::AccountDisplay ( QWidget *parent ) : QWidget ( parent ) 15AccountDisplay::AccountDisplay ( QWidget *parent ) : QWidget ( parent )
18 { 16 {
19 cleared = 0; 17 cleared = 0;
20 18
21 firstline = new QHBox ( this ); 19 firstline = new QHBox ( this );
diff --git a/noncore/apps/qashmoney/budgetdisplay.cpp b/noncore/apps/qashmoney/budgetdisplay.cpp
index 492595a..d4047bf 100755
--- a/noncore/apps/qashmoney/budgetdisplay.cpp
+++ b/noncore/apps/qashmoney/budgetdisplay.cpp
@@ -1,22 +1,19 @@
1#include <qmessagebox.h> 1#include <qmessagebox.h>
2#include <qheader.h> 2#include <qheader.h>
3#include <qfont.h>
4#include <sqlite.h> 3#include <sqlite.h>
5 4
6#include "budgetdisplay.h" 5#include "budgetdisplay.h"
7#include "budget.h" 6#include "budget.h"
8#include "newaccount.h"
9#include "datepicker.h" 7#include "datepicker.h"
10#include "preferences.h"
11#include "transaction.h" 8#include "transaction.h"
12 9
13extern Preferences *preferences; 10extern Preferences *preferences;
14extern Budget *budget; 11extern Budget *budget;
15extern Transaction *transaction; 12extern Transaction *transaction;
16 13
17BudgetDisplay::BudgetDisplay ( QWidget *parent ) : QWidget ( parent ) 14BudgetDisplay::BudgetDisplay ( QWidget *parent ) : QWidget ( parent )
18 { 15 {
19 QFont font = this->font(); 16 QFont font = this->font();
20 font.setWeight ( QFont::Bold ); 17 font.setWeight ( QFont::Bold );
21 18
22 //set the default date to today 19 //set the default date to today
diff --git a/noncore/apps/qashmoney/newaccount.cpp b/noncore/apps/qashmoney/newaccount.cpp
index 2ad8f60..7e57a18 100755
--- a/noncore/apps/qashmoney/newaccount.cpp
+++ b/noncore/apps/qashmoney/newaccount.cpp
@@ -1,18 +1,15 @@
1#include "newaccount.h" 1#include "newaccount.h"
2#include "calculator.h" 2#include "calculator.h"
3#include "datepicker.h" 3#include "datepicker.h"
4#include "transaction.h"
5#include "preferences.h"
6#include <qdatetime.h>
7#include <qmultilineedit.h> 4#include <qmultilineedit.h>
8 5
9extern Preferences *preferences; 6extern Preferences *preferences;
10 7
11NewAccount::NewAccount ( QWidget *parent, const char *name, bool modal ) : QDialog ( parent, name, modal ) 8NewAccount::NewAccount ( QWidget *parent, const char *name, bool modal ) : QDialog ( parent, name, modal )
12 { 9 {
13 accountdescription = ""; 10 accountdescription = "";
14 dateedited = FALSE; 11 dateedited = FALSE;
15 setCaption( tr( "Account" ) ); 12 setCaption( tr( "Account" ) );
16 13
17 namelabel = new QLabel ( "Account Name", this ); 14 namelabel = new QLabel ( "Account Name", this );
18 15
diff --git a/noncore/apps/qashmoney/newtransaction.cpp b/noncore/apps/qashmoney/newtransaction.cpp
index 630a8b8..5c78139 100755
--- a/noncore/apps/qashmoney/newtransaction.cpp
+++ b/noncore/apps/qashmoney/newtransaction.cpp
@@ -1,19 +1,17 @@
1#include "newtransaction.h" 1#include "newtransaction.h"
2#include "calculator.h" 2#include "calculator.h"
3#include "datepicker.h" 3#include "datepicker.h"
4#include "memory.h"
5#include "budget.h" 4#include "budget.h"
6 5
7#include <qdatetime.h>
8#include <qmultilineedit.h> 6#include <qmultilineedit.h>
9 7
10extern Budget *budget; 8extern Budget *budget;
11extern Preferences *preferences; 9extern Preferences *preferences;
12 10
13NewTransaction::NewTransaction ( QWidget* parent ) : QDialog ( parent, 0, TRUE ) 11NewTransaction::NewTransaction ( QWidget* parent ) : QDialog ( parent, 0, TRUE )
14 { 12 {
15 transactiondescription = ""; 13 transactiondescription = "";
16 currentlineitem = -1; 14 currentlineitem = -1;
17 currentbudget = -1; 15 currentbudget = -1;
18 dateedited = FALSE; 16 dateedited = FALSE;
19 setCaption( tr( "Transaction" ) ); 17 setCaption( tr( "Transaction" ) );
diff --git a/noncore/apps/qashmoney/preferencedialogs.cpp b/noncore/apps/qashmoney/preferencedialogs.cpp
index d7c66d3..5408a5b 100755
--- a/noncore/apps/qashmoney/preferencedialogs.cpp
+++ b/noncore/apps/qashmoney/preferencedialogs.cpp
@@ -1,15 +1,14 @@
1#include "preferencedialogs.h" 1#include "preferencedialogs.h"
2#include "preferences.h" 2#include "preferences.h"
3#include <qlabel.h>
4 3
5extern Preferences *preferences; 4extern Preferences *preferences;
6 5
7DatePreferences::DatePreferences ( QWidget* parent ) : QDialog ( parent, 0, TRUE ) 6DatePreferences::DatePreferences ( QWidget* parent ) : QDialog ( parent, 0, TRUE )
8 { 7 {
9 setCaption( tr( "Date" ) ); 8 setCaption( tr( "Date" ) );
10 9
11 QLabel *datelabel = new QLabel ( "Format", this ); 10 QLabel *datelabel = new QLabel ( "Format", this );
12 dateformat = new QComboBox ( this ); 11 dateformat = new QComboBox ( this );
13 dateformat->setEditable ( FALSE ); 12 dateformat->setEditable ( FALSE );
14 dateformat->insertItem ( "yyyymmdd" ); 13 dateformat->insertItem ( "yyyymmdd" );
15 dateformat->insertItem ( "yymmdd" ); 14 dateformat->insertItem ( "yymmdd" );
diff --git a/noncore/apps/qashmoney/transactiondisplay.cpp b/noncore/apps/qashmoney/transactiondisplay.cpp
index 78b8a00..474f11e 100755
--- a/noncore/apps/qashmoney/transactiondisplay.cpp
+++ b/noncore/apps/qashmoney/transactiondisplay.cpp
@@ -1,27 +1,24 @@
1#include "transactiondisplay.h" 1#include "transactiondisplay.h"
2#include "newtransaction.h" 2#include "newtransaction.h"
3#include "account.h" 3#include "account.h"
4#include "budget.h" 4#include "budget.h"
5#include "memory.h" 5#include "memory.h"
6#include "transfer.h" 6#include "transfer.h"
7#include "preferences.h"
8#include "calculator.h" 7#include "calculator.h"
9#include "datepicker.h" 8#include "datepicker.h"
10 9
11#include <qdatetime.h>
12#include <qmessagebox.h> 10#include <qmessagebox.h>
13#include <qheader.h> 11#include <qheader.h>
14#include <qmultilineedit.h> 12#include <qmultilineedit.h>
15#include <qdatetime.h>
16 13
17extern Transaction *transaction; 14extern Transaction *transaction;
18extern Budget *budget; 15extern Budget *budget;
19extern Account *account; 16extern Account *account;
20extern Preferences *preferences; 17extern Preferences *preferences;
21extern Memory *memory; 18extern Memory *memory;
22extern Transfer *transfer; 19extern Transfer *transfer;
23 20
24TransactionDisplay::TransactionDisplay ( QWidget* parent ) : QWidget ( parent ) 21TransactionDisplay::TransactionDisplay ( QWidget* parent ) : QWidget ( parent )
25 { 22 {
26 // set transactiondisplay variables; 23 // set transactiondisplay variables;
27 accountid = 0; 24 accountid = 0;
diff --git a/noncore/apps/qashmoney/transferdialog.cpp b/noncore/apps/qashmoney/transferdialog.cpp
index f85c740..558abec 100755
--- a/noncore/apps/qashmoney/transferdialog.cpp
+++ b/noncore/apps/qashmoney/transferdialog.cpp
@@ -1,18 +1,16 @@
1#include "transferdialog.h" 1#include "transferdialog.h"
2#include "datepicker.h" 2#include "datepicker.h"
3#include "calculator.h" 3#include "calculator.h"
4 4
5#include <qdatetime.h>
6#include <qfont.h>
7 5
8extern Preferences *preferences; 6extern Preferences *preferences;
9extern Account *account; 7extern Account *account;
10 8
11TransferDialog::TransferDialog ( QWidget *parent, int fromaccountid, int toaccountid ) : QDialog ( parent, 0, TRUE ) 9TransferDialog::TransferDialog ( QWidget *parent, int fromaccountid, int toaccountid ) : QDialog ( parent, 0, TRUE )
12 { 10 {
13 dateedited = FALSE; 11 dateedited = FALSE;
14 setCaption ( "Transfer" ); 12 setCaption ( "Transfer" );
15 13
16 fromaccountlabel = new QLabel ( "From account:", this ); 14 fromaccountlabel = new QLabel ( "From account:", this );
17 QFont f = this->font(); 15 QFont f = this->font();
18 f.setWeight ( QFont::Bold ); 16 f.setWeight ( QFont::Bold );