Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 244c496

Browse files
elpasogithub-actions[bot]
authored andcommittedMar 3, 2023
Fix missing maximize button for attribute form dialog on Windows
On windows, the attribute form dialog misses the maximize button which can be very useful with large custom forms. I've tried all possible combination of flags and even a custom windows API event manager but I couldn't make the maximize button appear when the Qt::Tool flag is set.
1 parent 17b73cd commit 244c496

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/app/qgsfeatureaction.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ QgsAttributeDialog *QgsFeatureAction::newDialog( bool cloneFeature )
6868
context.setFormMode( QgsAttributeEditorContext::StandaloneDialog );
6969

7070
QgsAttributeDialog *dialog = new QgsAttributeDialog( mLayer, f, cloneFeature, parentWidget(), true, context );
71+
72+
//* Skip this code on windows, because the Qt::Tool flag prevents the maximize button to be shown
73+
#ifndef Q_OS_WIN
7174
dialog->setWindowFlags( dialog->windowFlags() | Qt::Tool );
75+
#endif
7276

7377
dialog->setObjectName( QStringLiteral( "featureactiondlg:%1:%2" ).arg( mLayer->id() ).arg( f->id() ) );
7478

0 commit comments

Comments
 (0)
Please sign in to comment.