summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-09-18 20:34:22 +0200
committerYorhel <git@yorhel.nl>2009-09-18 20:34:22 +0200
commitfaab1d6c213457322bfae715f74988ad7cd0db90 (patch)
tree0de20c4206accb0d8ffede858fde7b7c7e5f2a6b
parent395b4044c7febda9f07e4ff1ec7723b29760195c (diff)
Small interface improvements for the transaction list
and another disclaimer to the first startup message.
-rw-r--r--geld.cpp4
-rw-r--r--geld.ui15
2 files changed, 15 insertions, 4 deletions
diff --git a/geld.cpp b/geld.cpp
index b020fe7..2c2903a 100644
--- a/geld.cpp
+++ b/geld.cpp
@@ -20,7 +20,8 @@ Geld::Geld(QWidget *parent)
"- All data is saved in a user-global database file which cannot be changed at the moment, so if someone opens this program on your PC, the first thing he/she will see is your financial data.\n"
"- All data is saved unencrypted, anyone who has access to the database file has access to it's contents.\n"
"- This program is still in development, older database files may not be compatible with newer versions of the software.\n"
- "- A simple excel sheet may very well be more useful than this program.");
+ "- A simple excel sheet may very well be more useful than this program.\n"
+ "- This program is written by an engineer who knows nothing about finance");
ui->setupUi(this);
initDB(f);
@@ -104,6 +105,7 @@ int Geld::selectedTransaction() {
}
void Geld::refreshTransactions() {
+ ui->tableTransactions->horizontalHeader()->setStretchLastSection(false);
((TransactionModel *) ui->tableTransactions->model())->refresh();
ui->tableTransactions->resizeColumnsToContents();
ui->tableTransactions->horizontalHeader()->setStretchLastSection(true);
diff --git a/geld.ui b/geld.ui
index b73598d..c3fceb2 100644
--- a/geld.ui
+++ b/geld.ui
@@ -42,12 +42,21 @@
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
- <property name="cornerButtonEnabled">
- <bool>true</bool>
- </property>
+ <attribute name="horizontalHeaderHighlightSections">
+ <bool>false</bool>
+ </attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
+ <attribute name="verticalHeaderDefaultSectionSize">
+ <number>18</number>
+ </attribute>
+ <attribute name="verticalHeaderDefaultSectionSize">
+ <number>18</number>
+ </attribute>
+ <attribute name="horizontalHeaderHighlightSections">
+ <bool>false</bool>
+ </attribute>
</widget>
</item>
<item row="1" column="0">