|
|
@ -89,12 +89,12 @@ FiltersBase::FiltersBase(QWidget *parent, TransferListWidget *transferList) |
|
|
|
|
|
|
|
|
|
|
|
QSize FiltersBase::sizeHint() const |
|
|
|
QSize FiltersBase::sizeHint() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
QSize size; |
|
|
|
return { |
|
|
|
// Height should be exactly the height of the content
|
|
|
|
// Width should be exactly the width of the content
|
|
|
|
size.setHeight(((sizeHintForRow(0) + 2 * spacing()) * (count() + 0.5))); |
|
|
|
sizeHintForColumn(0), |
|
|
|
// Width should be exactly the width of the content
|
|
|
|
// Height should be exactly the height of the content
|
|
|
|
size.setWidth(sizeHintForColumn(0)); |
|
|
|
static_cast<int>((sizeHintForRow(0) + 2 * spacing()) * (count() + 0.5)), |
|
|
|
return size; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QSize FiltersBase::minimumSizeHint() const |
|
|
|
QSize FiltersBase::minimumSizeHint() const |
|
|
|