ClangdSettingsWidget: Enable word wrap for a long help label

Change-Id: Ia96b73fb2dded58fb824b401c0cf94e8ef5a5664
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alexander Akulich
2022-09-08 16:34:52 +03:00
parent 69fad91660
commit 2054dc8169

View File

@@ -338,6 +338,7 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
"project-specific settings can be configured by putting a .clangd file into " "project-specific settings can be configured by putting a .clangd file into "
"the project source tree.") "the project source tree.")
.arg(ClangdSettings::clangdUserConfigFilePath().toUserOutput())); .arg(ClangdSettings::clangdUserConfigFilePath().toUserOutput()));
configFilesHelpLabel->setWordWrap(true);
connect(configFilesHelpLabel, &QLabel::linkHovered, configFilesHelpLabel, &QLabel::setToolTip); connect(configFilesHelpLabel, &QLabel::linkHovered, configFilesHelpLabel, &QLabel::setToolTip);
connect(configFilesHelpLabel, &QLabel::linkActivated, [](const QString &link) { connect(configFilesHelpLabel, &QLabel::linkActivated, [](const QString &link) {
if (link.startsWith("https")) if (link.startsWith("https"))