mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Minor issues related to release
* Add shortcut for Plot Editor, and modify how command features are triggered Use Ctrl-E to launch the Plot Editor. * Add optional use of NOECHO and ECHO keywords in GRDECL files * Add ECHO keywords to sector model export * Add Help button to Preferences
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "RiaNetworkTools.h"
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QErrorMessage>
|
||||
#include <QEventLoop>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
@@ -26,6 +27,28 @@
|
||||
#include <QStringList>
|
||||
#include <QUrl>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaNetworkTools::openSearchPage( const QString& searchText )
|
||||
{
|
||||
QString url = QString( "https://resinsight.org/search/?q=" ) + searchText;
|
||||
|
||||
RiaNetworkTools::openUrl( url );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaNetworkTools::openUrlWithErrorReporting( const QString& urlString )
|
||||
{
|
||||
if ( !QDesktopServices::openUrl( urlString ) )
|
||||
{
|
||||
QErrorMessage* errorHandler = QErrorMessage::qtHandler();
|
||||
errorHandler->showMessage( "Failed open browser with the following url\n\n" + urlString );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
class RiaNetworkTools
|
||||
{
|
||||
public:
|
||||
static void openSearchPage( const QString& searchText );
|
||||
static void openUrlWithErrorReporting( const QString& urlString );
|
||||
static void openUrl( const QString& urlString );
|
||||
static void createAndOpenUrlWithFallback( const QString& urlSubString );
|
||||
static void openUrlWithFallback( const QStringList& urlList );
|
||||
|
||||
Reference in New Issue
Block a user