Well, like I said, it was an improvement idea. I didn't even mean to give a 100% ready solution.
But alright, this changes the situation a bit. It might be easiest to check whether such application exists, go into the child group and pick version numbers:
if (allsoftware.contains("GPL Ghostscript"))
{
settings.beginGroup("GPL Ghostscript");
qSort(versions.begin(), versions.end(), versionGreaterThan);
settings.endGroup();
...
}
QStringList allsoftware = settings.childGroups();
if (allsoftware.contains("GPL Ghostscript"))
{
settings.beginGroup("GPL Ghostscript");
QStringList versions = settings.childGroups();
qSort(versions.begin(), versions.end(), versionGreaterThan);
settings.endGroup();
...
}
To copy to clipboard, switch view to plain text mode
This also simplifies the compare function a bit.
Bookmarks