Fix Last Column adding a horizontal Scroll on the Dive List.

Fixes the last column adding a horizontal scroll on the dive list,
since we have the hability to show / hide columns, I had to create
a helper method to discover what is the last column and set the
size of it very small so no scroll is created.

Also, I'v set the setStrechLastSection to true. :)

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-11-13 16:59:56 -02:00 committed by Dirk Hohndel
parent 9f8577a5ea
commit 37e7984e15
2 changed files with 15 additions and 0 deletions

View file

@ -62,6 +62,7 @@ private:
void setupUi();
void backupExpandedRows();
void restoreExpandedRows();
int lastVisibleColumn();
};
#endif // DIVELISTVIEW_H