mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
#4396 System : Add SSL information to about dialog
This commit is contained in:
parent
ac8ea73c36
commit
6ce3371df5
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user