diff options
author | Yorhel <git@yorhel.nl> | 2009-09-18 20:34:22 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-09-18 20:34:22 +0200 |
commit | faab1d6c213457322bfae715f74988ad7cd0db90 (patch) | |
tree | 0de20c4206accb0d8ffede858fde7b7c7e5f2a6b | |
parent | 395b4044c7febda9f07e4ff1ec7723b29760195c (diff) |
Small interface improvements for the transaction list
and another disclaimer to the first startup message.
-rw-r--r-- | geld.cpp | 4 | ||||
-rw-r--r-- | geld.ui | 15 |
2 files changed, 15 insertions, 4 deletions
@@ -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); @@ -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"> |