Diffstat (limited to 'noncore/apps/qashmoney/preferencedialogs.cpp') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/preferencedialogs.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/noncore/apps/qashmoney/preferencedialogs.cpp b/noncore/apps/qashmoney/preferencedialogs.cpp index 3c2fb97..00d52c6 100755 --- a/noncore/apps/qashmoney/preferencedialogs.cpp +++ b/noncore/apps/qashmoney/preferencedialogs.cpp | |||
@@ -81,2 +81,14 @@ TransactionPreferences::TransactionPreferences ( QWidget* parent ) : QDialog ( p | |||
81 | 81 | ||
82 | limittransactionsbox = new QHBox ( this ); | ||
83 | limittransactionsbox->setSpacing ( 2 ); | ||
84 | limittransactionslabel = new QLabel ( "Limit All Transactions To", limittransactionsbox ); | ||
85 | limittransactions = new QComboBox ( limittransactionsbox ); | ||
86 | limittransactions->insertItem ( "14 days" ); | ||
87 | limittransactions->insertItem ( "30 days" ); | ||
88 | limittransactions->insertItem ( "60 days" ); | ||
89 | limittransactions->insertItem ( "90 days" ); | ||
90 | limittransactions->insertItem ( "180 days" ); | ||
91 | limittransactions->insertItem ( "365 days" ); | ||
92 | limittransactions->insertItem ( "All" ); | ||
93 | |||
82 | if ( preferences->getPreference ( 3 ) == 1 ) | 94 | if ( preferences->getPreference ( 3 ) == 1 ) |
@@ -97,3 +109,4 @@ TransactionPreferences::TransactionPreferences ( QWidget* parent ) : QDialog ( p | |||
97 | layout->addWidget ( excludetransfers ); | 109 | layout->addWidget ( excludetransfers ); |
98 | layout->insertSpacing ( 2, 5 ); | 110 | layout->addWidget ( limittransactionsbox ); |
111 | layout->insertSpacing ( 3, 5 ); | ||
99 | layout->addWidget ( defaults ); | 112 | layout->addWidget ( defaults ); |
@@ -102,2 +115,3 @@ TransactionPreferences::TransactionPreferences ( QWidget* parent ) : QDialog ( p | |||
102 | connect ( excludetransfers, SIGNAL ( toggled ( bool ) ), this, SLOT ( changeExcludeTranfersPreference ( bool ) ) ); | 115 | connect ( excludetransfers, SIGNAL ( toggled ( bool ) ), this, SLOT ( changeExcludeTranfersPreference ( bool ) ) ); |
116 | connect ( limittransactions, SIGNAL ( activated ( int ) ), this, SLOT ( changeLimitTransactionsPreference ( int ) ) ); | ||
103 | } | 117 | } |
@@ -108,2 +122,7 @@ TransactionPreferences::~TransactionPreferences () | |||
108 | 122 | ||
123 | void TransactionPreferences::changeLimitTransactionsPreference ( int pref ) | ||
124 | { | ||
125 | preferences->changePreference ( 7, pref ); | ||
126 | } | ||
127 | |||
109 | void TransactionPreferences::changeShowClearedPreference ( bool state ) | 128 | void TransactionPreferences::changeShowClearedPreference ( bool state ) |
@@ -128,3 +147,5 @@ void TransactionPreferences::setDefaultTransactionPreferences () | |||
128 | preferences->changePreference ( 6, 0 ); | 147 | preferences->changePreference ( 6, 0 ); |
148 | preferences->changePreference ( 7, 0 ); | ||
129 | showclearedtransactions->setChecked ( FALSE ); | 149 | showclearedtransactions->setChecked ( FALSE ); |
150 | limittransactions->setCurrentItem ( 0 ); | ||
130 | } | 151 | } |