#4396 System : Add SSL information to about dialog

This commit is contained in:
Magne Sjaastad 2019-05-08 08:38:27 +02:00
parent ac8ea73c36
commit 6ce3371df5

View File

@ -30,6 +30,7 @@
#include <QAction>
#include <QDesktopServices>
#include <QErrorMessage>
#include <QSslSocket>
#include <QUrl>
CAF_CMD_SOURCE_INIT(RicHelpAboutFeature, "RicHelpAboutFeature");
@ -90,6 +91,36 @@ void RicHelpAboutFeature::onActionTriggered(bool isChecked)
dlg.addVersionEntry(" ", caf::Viewer::isShadersSupported() ? " Hardware OpenGL" : " Software OpenGL");
dlg.addVersionEntry(" ", QString(" Octave ") + QString(RESINSIGHT_OCTAVE_VERSION));
bool isAbleToUseSsl = false;
bool isSslSupported = false;
#ifndef QT_NO_OPENSSL
isAbleToUseSsl = true;
isSslSupported = QSslSocket::supportsSsl();
#endif
{
QString txt;
if (isAbleToUseSsl)
{
txt = " Use of SSL is available";
if (isSslSupported)
{
txt += " and supported";
}
else
{
txt += ", but not supported";
}
}
else
{
txt = " SSL is not available";
}
dlg.addVersionEntry(" ", txt);
}
if (RiaApplication::enableDevelopmentFeatures())
{
QString vendor("Unknown");