Diffstat (limited to 'noncore/apps/checkbook/configuration.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/configuration.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/checkbook/configuration.cpp b/noncore/apps/checkbook/configuration.cpp index 872d9b2..929c7c0 100644 --- a/noncore/apps/checkbook/configuration.cpp +++ b/noncore/apps/checkbook/configuration.cpp | |||
@@ -137,32 +137,38 @@ QWidget *Configuration::initSettings(Cfg &cfg) | |||
137 | lastTabCB = new QCheckBox( tr("Show last checkbook tab" ), container ); | 137 | lastTabCB = new QCheckBox( tr("Show last checkbook tab" ), container ); |
138 | QWhatsThis::add( lastTabCB, tr("Click here to select whether the last tab in a checkbook should be displayed.") ); | 138 | QWhatsThis::add( lastTabCB, tr("Click here to select whether the last tab in a checkbook should be displayed.") ); |
139 | lastTabCB->setMaximumHeight(fh+5); | 139 | lastTabCB->setMaximumHeight(fh+5); |
140 | lastTabCB->setChecked( cfg.isShowLastTab() ); | 140 | lastTabCB->setChecked( cfg.isShowLastTab() ); |
141 | layout->addMultiCellWidget( lastTabCB, 4, 4, 0, 1 ); | 141 | layout->addMultiCellWidget( lastTabCB, 4, 4, 0, 1 ); |
142 | 142 | ||
143 | savePayees = new QCheckBox( tr("Save new description as payee"), container ); | 143 | savePayees = new QCheckBox( tr("Save new description as payee"), container ); |
144 | QWhatsThis::add( savePayees, tr("Click here to save new descriptions in the list of payess.") ); | 144 | QWhatsThis::add( savePayees, tr("Click here to save new descriptions in the list of payess.") ); |
145 | savePayees->setMaximumHeight(fh+5); | 145 | savePayees->setMaximumHeight(fh+5); |
146 | savePayees->setChecked( cfg.getSavePayees() ); | 146 | savePayees->setChecked( cfg.getSavePayees() ); |
147 | layout->addMultiCellWidget( savePayees, 5, 5, 0, 1 ); | 147 | layout->addMultiCellWidget( savePayees, 5, 5, 0, 1 ); |
148 | 148 | ||
149 | smallFontCB = new QCheckBox( tr( "Use smaller font for list" ), container ); | ||
150 | QWhatsThis::add( smallFontCB, tr( "Click here to select smaller font for transactions." ) ); | ||
151 | smallFontCB->setChecked( cfg.getUseSmallFont() ); | ||
152 | layout->addMultiCellWidget( smallFontCB, 6, 6, 0, 1 ); | ||
153 | |||
149 | return(control); | 154 | return(control); |
150 | } | 155 | } |
151 | 156 | ||
152 | // --- saveConfig ------------------------------------------------------------- | 157 | // --- saveConfig ------------------------------------------------------------- |
153 | void Configuration::saveConfig(Cfg &cfg) | 158 | void Configuration::saveConfig(Cfg &cfg) |
154 | { | 159 | { |
155 | // Settings | 160 | // Settings |
156 | cfg.setCurrencySymbol( symbolEdit->text() ); | 161 | cfg.setCurrencySymbol( symbolEdit->text() ); |
162 | cfg.setUseSmallFont( smallFontCB->isChecked() ); | ||
157 | cfg.setShowLocks( lockCB->isChecked() ); | 163 | cfg.setShowLocks( lockCB->isChecked() ); |
158 | cfg.setShowBalances( balCB->isChecked() ); | 164 | cfg.setShowBalances( balCB->isChecked() ); |
159 | cfg.setOpenLastBook( openLastBookCB->isChecked() ); | 165 | cfg.setOpenLastBook( openLastBookCB->isChecked() ); |
160 | cfg.setShowLastTab( lastTabCB->isChecked() ); | 166 | cfg.setShowLastTab( lastTabCB->isChecked() ); |
161 | cfg.setSavePayees( savePayees->isChecked() ); | 167 | cfg.setSavePayees( savePayees->isChecked() ); |
162 | 168 | ||
163 | // Typelist | 169 | // Typelist |
164 | _listEditTypes->storeInList( cfg.getAccountTypes() ); | 170 | _listEditTypes->storeInList( cfg.getAccountTypes() ); |
165 | 171 | ||
166 | // Category list | 172 | // Category list |
167 | QStringList lst; | 173 | QStringList lst; |
168 | _listEditCategories->storeInList( lst ); | 174 | _listEditCategories->storeInList( lst ); |