feat: obtain url from user input
This commit is contained in:
parent
f2590b103f
commit
956f51d38a
|
@ -111,6 +111,8 @@ DOS_API void DOS_CALL dos_qncm_delete(DosQNetworkConfigurationManager *vptr);
|
|||
|
||||
DOS_API char * DOS_CALL dos_image_resizer(char* imagePath, int maxSize, char* tmpDirPath);
|
||||
|
||||
DOS_API char * DOS_CALL dos_qurl_fromUserInput(char* input);
|
||||
|
||||
/// \brief Sets the application icon
|
||||
DOS_API void DOS_CALL dos_qapplication_icon(const char *filename);
|
||||
|
||||
|
|
|
@ -1148,3 +1148,8 @@ char *dos_image_resizer(char* imagePath, int maxSize, char* tmpDirPath)
|
|||
|
||||
return convert_to_cstring(newFilePath.toUtf8());
|
||||
}
|
||||
|
||||
char *dos_qurl_fromUserInput(char* input)
|
||||
{
|
||||
return convert_to_cstring(QUrl::fromUserInput(QString(input)).toString());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue