view ConfigurationProcessing.cpp @ 74:19d8825ec501

Add define for code that can never be reached. To avoid the line being counted.
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Sat, 16 Feb 2013 15:26:27 +0100
parents b9515dc35fe4
children
line wrap: on
line source

#include <QtCore/QDir>

#include <QtGui/QDesktopServices>

QString processSetupVariables(const QString& inString)
{
  QString outString = inString;
  QString homeLocation =
    QString("%1%2")
    .arg(QDesktopServices::storageLocation(QDesktopServices::HomeLocation))
    .arg(QDir::separator());

  outString.replace(QRegExp("^~/"),
		    homeLocation);
  return outString;
}