mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Have QFormLayout look the same in the qt 5 calibre style
This commit is contained in:
parent
c4df0e49ef
commit
0a990476a4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user