Make this a namespace

remotes/origin/epub-qtextdoc
Albert Astals Cid 13 years ago
parent 1121cff1b8
commit 88afb3bf67
  1. 7
      ui/url_utils.h

@ -1,7 +1,8 @@
#include <QRegExp>
class UrlUtils {
public:
static QString getUrl( QString txt )
namespace UrlUtils
{
QString getUrl( QString txt )
{
// match the url
QRegExp reg( QString( "\\b((https?|ftp)://(www\\d{0,3}[.])?[\\S]+)|((www\\d{0,3}[.])[\\S]+)" ) );

Loading…
Cancel
Save