[SailfishDevel] Versions

Andrey Kozhevnikov coderusinbox at gmail.com
Sun Jul 20 12:12:19 UTC 2014


QProcess app;
app.start("/bin/rpm", QStringList() << "-qa" << "--queryformat" << 
"%{version}-%{release}" << "packagename");
app.waitForFinished(-1);
if (app.bytesAvailable() > 0) {
version = app.readAll();
}

20.07.2014 17:26, Chris Walker пишет:
> Is there any way to have my 'About' page pick up the Version and
> Release information from the yaml file?
>
> At the moment, I'm hard coding the versioninfo in the About page but
> I'd like it to be updated automagically in the future.
>
> I looked around but couldn't see this information anywhere so I'm
> guessing that this question hasn't been asked/answered before but if it
> has, please feel free to point me in the right direction.
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org



More information about the Devel mailing list