QtLingo 1
QtLingo is an Application to make Qt Computer Translations easier
Utils Class Reference

Utils. Utils Workaround: As of Qt 5.4 QtQuick does not expose QUrl::fromUserInput. More...

Inheritance diagram for Utils:

Public Member Functions

 Utils (QObject *parent=nullptr)
 

Static Public Member Functions

static Q_INVOKABLE QUrl fromUserInput (const QString &userInput)
 fromUserInput. fromUserInput More...
 

Detailed Description

Utils. Utils Workaround: As of Qt 5.4 QtQuick does not expose QUrl::fromUserInput.

Definition at line 136 of file main.cpp.

Constructor & Destructor Documentation

◆ Utils()

Utils::Utils ( QObject *  parent = nullptr)
inline

Definition at line 140 of file main.cpp.

140: QObject(parent) { }

Member Function Documentation

◆ fromUserInput()

QUrl Utils::fromUserInput ( const QString &  userInput)
static

fromUserInput. fromUserInput

Definition at line 147 of file main.cpp.

148{
149 if (userInput.isEmpty()) return QUrl::fromUserInput("about:blank");
150 const QUrl result = QUrl::fromUserInput(userInput);
151 return result.isValid() ? result : QUrl::fromUserInput("about:blank");
152}

The documentation for this class was generated from the following file: