Engauge Digitizer 2
Loading...
Searching...
No Matches
UrlDirty Class Reference

Adds ability to QUrl to cleanup url path. More...

#include <UrlDirty.h>

Inheritance diagram for UrlDirty:
Inheritance graph
Collaboration diagram for UrlDirty:
Collaboration graph

Public Member Functions

 UrlDirty ()
 Default constructor.
 UrlDirty (const QUrl &other)
 Copy constructor.
QString toLocalFile () const
 Override method to get string value to remove trailing whitepace.

Detailed Description

Adds ability to QUrl to cleanup url path.

Hint for usage - apply where QUrl::toLocalFile is found

Definition at line 15 of file UrlDirty.h.

Constructor & Destructor Documentation

◆ UrlDirty() [1/2]

UrlDirty::UrlDirty ( )

Default constructor.

Definition at line 9 of file UrlDirty.cpp.

10{
11}

◆ UrlDirty() [2/2]

UrlDirty::UrlDirty ( const QUrl & other)

Copy constructor.

Definition at line 13 of file UrlDirty.cpp.

13 :
14 QUrl (other)
15{
16}

Member Function Documentation

◆ toLocalFile()

QString UrlDirty::toLocalFile ( ) const

Override method to get string value to remove trailing whitepace.

Definition at line 18 of file UrlDirty.cpp.

19{
20 QString dirty = QUrl::toLocalFile ();
21 return dirty.replace ("\r", "").replace ("\n", "");
22}

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