mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 21:23:49 +02:00
Have QFormLayout look the same in the qt 5 calibre style
This commit is contained in:
parent
c4df0e49ef
commit
0a990476a4
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue