Mercurial > dedupe
comparison ConfigurationProcessing.cpp @ 16:06166d6c083b
Add configuration processing.
Cache DB values
Add a custom RBTree to save space.
Track multiple DB connections properly.
More testing.
Add ValueExistsException.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Tue, 28 Aug 2012 18:58:02 +0200 |
| parents | |
| children | f711ddb56ae7 |
comparison
equal
deleted
inserted
replaced
| 15:199fc63c60c1 | 16:06166d6c083b |
|---|---|
| 1 #include "ConfigurationProcessing.hpp" | |
| 2 | |
| 3 #include <QtGui/QDesktopServices> | |
| 4 #include <QtCore/QRegExp> | |
| 5 #include <QtCore/QDir> | |
| 6 | |
| 7 QString processSetupVariables(const QString& inString) | |
| 8 { | |
| 9 QString outString = inString; | |
| 10 outString.replace(QRegExp("^~/"), | |
| 11 QString("%1%2").arg(QDesktopServices::storageLocation(QDesktopServices::HomeLocation)).arg(QDir::separator())); | |
| 12 return outString; | |
| 13 } |
