diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2016-09-28 10:57:21 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2016-09-28 09:39:29 +0000 |
commit | 40d7399755e0f869567032eb6c5710b89638ad64 (patch) | |
tree | ac3f3092f0d034c3a5464f3071f03ffd3c9f7bb6 /src/plugins/help/helpplugin.cpp | |
parent | 615ace36d561e5126edb761a8bccb3a5c28ece00 (diff) |
Help: Small improvements for System Info dialog
1) Make the font non-proportional, since qtDiag's output is formatted
with spaces
2) Make the dialog a window with maximize buttons
3) Fix the formatting for unloaded plugins
Change-Id: I911871b1ffc9dceebcbb04f544cc6d580b95c54e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/help/helpplugin.cpp')
-rw-r--r-- | src/plugins/help/helpplugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index d02e690f66..f50a8ee5b8 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -675,6 +675,7 @@ void HelpPlugin::slotSystemInformation() { auto dialog = new DialogClosingOnEscape(ICore::dialogParent()); dialog->setAttribute(Qt::WA_DeleteOnClose); + dialog->setWindowFlags(Qt::Window); dialog->setModal(true); dialog->setWindowTitle(tr("System Information")); auto layout = new QVBoxLayout; @@ -684,6 +685,10 @@ void HelpPlugin::slotSystemInformation() layout->addWidget(intro); const QString text = "{noformat}\n" + ICore::systemInformation() + "\n{noformat}"; auto info = new QPlainTextEdit; + QFont font = info->font(); + font.setFamily("Courier"); + font.setStyleHint(QFont::TypeWriter); + info->setFont(font); info->setPlainText(text); layout->addWidget(info); auto buttonBox = new QDialogButtonBox; |