Engauge Digitizer 2
Loading...
Searching...
No Matches
UrlDirty.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2021 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#include "UrlDirty.h"
8
12
13UrlDirty::UrlDirty (const QUrl &other) :
14 QUrl (other)
15{
16}
17
18QString UrlDirty::toLocalFile () const
19{
20 QString dirty = QUrl::toLocalFile ();
21 return dirty.replace ("\r", "").replace ("\n", "");
22}
QString toLocalFile() const
Override method to get string value to remove trailing whitepace.
Definition UrlDirty.cpp:18
UrlDirty()
Default constructor.
Definition UrlDirty.cpp:9