[rkward/releases/0.6.4] rkward/misc: Don't forget header when calculating minimum accordion height

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Sun Dec 6 13:05:42 UTC 2015


Git commit 228faff3cc44ced686dda87dade065ae27f0a855 by Thomas Friedrichsmeier.
Committed on 06/12/2015 at 13:05.
Pushed by tfry into branch 'releases/0.6.4'.

Don't forget header when calculating minimum accordion height

M  +1    -1    rkward/misc/rkaccordiontable.cpp

http://commits.kde.org/rkward/228faff3cc44ced686dda87dade065ae27f0a855

diff --git a/rkward/misc/rkaccordiontable.cpp b/rkward/misc/rkaccordiontable.cpp
index 115eac0..f44c2b0 100644
--- a/rkward/misc/rkaccordiontable.cpp
+++ b/rkward/misc/rkaccordiontable.cpp
@@ -321,7 +321,7 @@ QSize RKAccordionTable::sizeHintWithoutEditor () const {
 
 	// NOTE: This is not totally correct, but seems to be, roughly. We can't use sizeHintForRow(0) for height calcuation, as the model may be empty
 	// (for "driven" optionsets.
-	return (QSize (minimumSizeHint ().width (), horizontalScrollBar ()->sizeHint ().height () + QFontMetrics (QFont ()).lineSpacing () * 4));
+	return (QSize (minimumSizeHint ().width (), header ()->sizeHint().height () + horizontalScrollBar ()->sizeHint ().height () + QFontMetrics (QFont ()).lineSpacing () * 4));
 }
 
 QSize RKAccordionTable::sizeHint () const {



More information about the rkward-tracker mailing list