@devinganger: This code snippet should help you read the substitutions from the registry.
QByteArray data; - holds the registry value with all the substitutions. Hope this helps.
QDataStream stream(data);
qint32 version;
stream >> version;
if (version == 1) {
qint32 count;
stream >> count;
for (int i = 0; i < count; ++i) {
bool isActive;
QString matchText;
QString insertText;
stream >> isActive;
stream >> matchText;
stream >> insertText;
}
}