author | drw <drw> | 2002-10-26 18:23:34 (UTC) |
---|---|---|
committer | drw <drw> | 2002-10-26 18:23:34 (UTC) |
commit | 3dc25703dbf961f86bc25378113ffafb18ee192e (patch) (unidiff) | |
tree | 75436ace2b4c524ea29de5cbd8ac6cbbbcf7ec4e /noncore/apps/checkbook/transaction.cpp | |
parent | ec58c37763a97306543a3f18052d37291b1cdf83 (diff) | |
download | opie-3dc25703dbf961f86bc25378113ffafb18ee192e.zip opie-3dc25703dbf961f86bc25378113ffafb18ee192e.tar.gz opie-3dc25703dbf961f86bc25378113ffafb18ee192e.tar.bz2 |
Whats This and a couple fixes
Diffstat (limited to 'noncore/apps/checkbook/transaction.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/transaction.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/noncore/apps/checkbook/transaction.cpp b/noncore/apps/checkbook/transaction.cpp index 7d1781b..82baec9 100644 --- a/noncore/apps/checkbook/transaction.cpp +++ b/noncore/apps/checkbook/transaction.cpp | |||
@@ -45,4 +45,3 @@ | |||
45 | #include <qstring.h> | 45 | #include <qstring.h> |
46 | 46 | #include <qwhatsthis.h> | |
47 | #include <stdio.h> | ||
48 | 47 | ||
@@ -50,3 +49,3 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
50 | char symbol ) | 49 | char symbol ) |
51 | : QDialog( parent, 0, TRUE, 0 ) | 50 | : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) |
52 | { | 51 | { |
@@ -81,2 +80,3 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
81 | withBtn = new QRadioButton( tr( "Withdrawal" ), btngrp ); | 80 | withBtn = new QRadioButton( tr( "Withdrawal" ), btngrp ); |
81 | QWhatsThis::add( withBtn, tr( "Select whether the transaction is a withdrawal or deposit here." ) ); | ||
82 | layout2->addWidget( withBtn, 0, 0 ); | 82 | layout2->addWidget( withBtn, 0, 0 ); |
@@ -84,2 +84,3 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
84 | depBtn = new QRadioButton( tr( "Deposit" ), btngrp ); | 84 | depBtn = new QRadioButton( tr( "Deposit" ), btngrp ); |
85 | QWhatsThis::add( depBtn, tr( "Select whether the transaction is a withdrawal or deposit here." ) ); | ||
85 | layout2->addWidget( depBtn, 0, 1 ); | 86 | layout2->addWidget( depBtn, 0, 1 ); |
@@ -91,2 +92,3 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
91 | QLabel *label = new QLabel( tr( "Date:" ), container ); | 92 | QLabel *label = new QLabel( tr( "Date:" ), container ); |
93 | QWhatsThis::add( label, tr( "Select date of transaction here." ) ); | ||
92 | layout->addWidget( label, 1, 0 ); | 94 | layout->addWidget( label, 1, 0 ); |
@@ -94,2 +96,3 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
94 | container ); | 96 | container ); |
97 | QWhatsThis::add( dateBtn, tr( "Select date of transaction here." ) ); | ||
95 | QPopupMenu *m1 = new QPopupMenu( container ); | 98 | QPopupMenu *m1 = new QPopupMenu( container ); |
@@ -104,4 +107,6 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
104 | label = new QLabel( tr( "Number:" ), container ); | 107 | label = new QLabel( tr( "Number:" ), container ); |
108 | QWhatsThis::add( label, tr( "Enter check number here." ) ); | ||
105 | layout->addWidget( label, 1, 2 ); | 109 | layout->addWidget( label, 1, 2 ); |
106 | numEdit = new QLineEdit( container ); | 110 | numEdit = new QLineEdit( container ); |
111 | QWhatsThis::add( numEdit, tr( "Enter check number here." ) ); | ||
107 | numEdit->setMaximumWidth( 40 ); | 112 | numEdit->setMaximumWidth( 40 ); |
@@ -111,4 +116,6 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
111 | label = new QLabel( tr( "Description:" ), container ); | 116 | label = new QLabel( tr( "Description:" ), container ); |
117 | QWhatsThis::add( label, tr( "Enter description of transaction here." ) ); | ||
112 | layout->addWidget( label, 2, 0 ); | 118 | layout->addWidget( label, 2, 0 ); |
113 | descEdit = new QLineEdit( container ); | 119 | descEdit = new QLineEdit( container ); |
120 | QWhatsThis::add( descEdit, tr( "Enter description of transaction here." ) ); | ||
114 | layout->addMultiCellWidget( descEdit, 2, 2, 1, 3 ); | 121 | layout->addMultiCellWidget( descEdit, 2, 2, 1, 3 ); |
@@ -117,4 +124,6 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
117 | label = new QLabel( tr( "Category:" ), container ); | 124 | label = new QLabel( tr( "Category:" ), container ); |
125 | QWhatsThis::add( label, tr( "Select transaction category here." ) ); | ||
118 | layout->addWidget( label, 3, 0 ); | 126 | layout->addWidget( label, 3, 0 ); |
119 | catList = new QComboBox( container ); | 127 | catList = new QComboBox( container ); |
128 | QWhatsThis::add( catList, tr( "Select transaction category here." ) ); | ||
120 | layout->addMultiCellWidget( catList, 3, 3, 1, 3 ); | 129 | layout->addMultiCellWidget( catList, 3, 3, 1, 3 ); |
@@ -123,4 +132,6 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
123 | label = new QLabel( tr( "Type:" ), container ); | 132 | label = new QLabel( tr( "Type:" ), container ); |
133 | QWhatsThis::add( label, tr( "Select transaction type here.\n\nThe options available vary based on whether the transaction is a deposit or withdrawal." ) ); | ||
124 | layout->addWidget( label, 4, 0 ); | 134 | layout->addWidget( label, 4, 0 ); |
125 | typeList = new QComboBox( container ); | 135 | typeList = new QComboBox( container ); |
136 | QWhatsThis::add( typeList, tr( "Select transaction type here.\n\nThe options available vary based on whether the transaction is a deposit or withdrawal." ) ); | ||
126 | layout->addMultiCellWidget( typeList, 4, 4, 1, 3 ); | 137 | layout->addMultiCellWidget( typeList, 4, 4, 1, 3 ); |
@@ -129,4 +140,6 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
129 | label = new QLabel( tr( "Amount:" ), container ); | 140 | label = new QLabel( tr( "Amount:" ), container ); |
141 | QWhatsThis::add( label, tr( "Enter the amount of transaction here.\n\nThe value entered should always be positive." ) ); | ||
130 | layout->addWidget( label, 5, 0 ); | 142 | layout->addWidget( label, 5, 0 ); |
131 | amtEdit = new QLineEdit( container ); | 143 | amtEdit = new QLineEdit( container ); |
144 | QWhatsThis::add( amtEdit, tr( "Enter the amount of transaction here.\n\nThe value entered should always be positive." ) ); | ||
132 | layout->addMultiCellWidget( amtEdit, 5, 5, 1, 3 ); | 145 | layout->addMultiCellWidget( amtEdit, 5, 5, 1, 3 ); |
@@ -135,4 +148,6 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
135 | label = new QLabel( tr( "Fee:" ), container ); | 148 | label = new QLabel( tr( "Fee:" ), container ); |
149 | QWhatsThis::add( label, tr( "Enter any fee amount assoiciated with this transaction.\n\nThe value entered should always be positive." ) ); | ||
136 | layout->addWidget( label, 6, 0 ); | 150 | layout->addWidget( label, 6, 0 ); |
137 | feeEdit = new QLineEdit( container ); | 151 | feeEdit = new QLineEdit( container ); |
152 | QWhatsThis::add( feeEdit, tr( "Enter any fee amount assoiciated with this transaction.\n\nThe value entered should always be positive." ) ); | ||
138 | layout->addMultiCellWidget( feeEdit, 6, 6, 1, 3 ); | 153 | layout->addMultiCellWidget( feeEdit, 6, 6, 1, 3 ); |
@@ -141,4 +156,6 @@ Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *in | |||
141 | label = new QLabel( tr( "Notes:" ), container ); | 156 | label = new QLabel( tr( "Notes:" ), container ); |
157 | QWhatsThis::add( label, tr( "Enter any additional information for this transaction here." ) ); | ||
142 | layout->addWidget( label, 7, 0 ); | 158 | layout->addWidget( label, 7, 0 ); |
143 | noteEdit = new QMultiLineEdit( container ); | 159 | noteEdit = new QMultiLineEdit( container ); |
160 | QWhatsThis::add( noteEdit, tr( "Enter any additional information for this transaction here." ) ); | ||
144 | layout->addMultiCellWidget( noteEdit, 8, 8, 0, 3 ); | 161 | layout->addMultiCellWidget( noteEdit, 8, 8, 0, 3 ); |