Have QFormLayout look the same in the qt 5 calibre style

This commit is contained in:
Kovid Goyal 2014-05-28 14:01:32 +05:30
parent c4df0e49ef
commit 0a990476a4

View File

@ -7,6 +7,7 @@
#include <QStyleFactory>
#include <QtWidgets/QProxyStyle>
#include <QStyleOptionToolButton>
#include <QFormLayout>
QProgressIndicator::QProgressIndicator(QWidget* parent, int size)
: QWidget(parent),
@ -151,6 +152,8 @@ class CalibreStyle: public QProxyStyle {
return QDialogButtonBox::MacLayout;
#endif
break;
case SH_FormLayoutFieldGrowthPolicy:
return QFormLayout::FieldsStayAtSizeHint; // Do not have fields expand to fill all available space in QFormLayout
default:
break;
}