Commit 228faff3 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

Don't forget header when calculating minimum accordion height

parent 6ffa2e63
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment