mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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 <QAction>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QErrorMessage>
|
#include <QErrorMessage>
|
||||||
|
#include <QSslSocket>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
CAF_CMD_SOURCE_INIT(RicHelpAboutFeature, "RicHelpAboutFeature");
|
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(" ", caf::Viewer::isShadersSupported() ? " Hardware OpenGL" : " Software OpenGL");
|
||||||
dlg.addVersionEntry(" ", QString(" Octave ") + QString(RESINSIGHT_OCTAVE_VERSION));
|
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())
|
if (RiaApplication::enableDevelopmentFeatures())
|
||||||
{
|
{
|
||||||
QString vendor("Unknown");
|
QString vendor("Unknown");
|
||||||
|
Loading…
Reference in New Issue
Block a user