Skip to content

Commit 15e7d57

Browse files
committed
Hide "whats this" buttons on all dialogs on Windows
Since it's totally useless and does nothing at all. *Requires Qt >= 5.10
1 parent 14f754a commit 15e7d57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,9 @@ int main( int argc, char *argv[] )
793793
QCoreApplication::setOrganizationDomain( QgsApplication::QGIS_ORGANIZATION_DOMAIN );
794794
QCoreApplication::setApplicationName( QgsApplication::QGIS_APPLICATION_NAME );
795795
QCoreApplication::setAttribute( Qt::AA_DontShowIconsInMenus, false );
796+
#if QT_VERSION >= 0x051000
797+
QCoreApplication::setAttribute( Qt::AA_DisableWindowContextHelpButton, true );
798+
#endif
796799

797800
QgsSettings settings;
798801
if ( configLocalStorageLocation.isEmpty() )

0 commit comments

Comments
 (0)