mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Merge pull request #6301 from manisandro/qt5.10
Initial workaround for Qt5.10 instability
This commit is contained in:
commit
b47eb87edb
@ -65,7 +65,11 @@ void QgsCollapsibleGroupBoxBasic::init()
|
||||
// TODO set size (as well as margins) depending on theme, in updateStyle()
|
||||
mCollapseButton->setIconSize( QSize( 12, 12 ) );
|
||||
mCollapseButton->setIcon( mCollapseIcon );
|
||||
// FIXME: This appears to mess up parent-child relationships and causes double-frees of children when destroying in Qt5.10, needs further investigation
|
||||
// See also https://github.com/qgis/QGIS/pull/6301
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
|
||||
setFocusProxy( mCollapseButton );
|
||||
#endif
|
||||
setFocusPolicy( Qt::StrongFocus );
|
||||
|
||||
connect( mCollapseButton, &QAbstractButton::clicked, this, &QgsCollapsibleGroupBoxBasic::toggleCollapsed );
|
||||
|
Loading…
x
Reference in New Issue
Block a user