Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #elif defined(Q_WS_HAIKU)
- extern const char* __get_haiku_revision(void);
- QString strVersion("Haiku");
- BPath path;
- if (find_directory(B_BEOS_LIB_DIRECTORY, &path) == B_OK) {
- path.Append("libbe.so");
- BAppFileInfo appFileInfo;
- version_info versionInfo;
- BFile file;
- if (file.SetTo(path.Path(), B_READ_ONLY) == B_OK
- && appFileInfo.SetTo(&file) == B_OK
- && appFileInfo.GetVersionInfo(&versionInfo,
- B_APP_VERSION_KIND) == B_OK
- && versionInfo.short_info[0] != '\0')
- strVersion = versionInfo.short_info;
- }
- const char* haikuRevision = __get_haiku_revision();
- if (haikuRevision != NULL) {
- os_str_ += " ( " + strVersion + " Rev. ";
- os_str_ += haikuRevision;
- os_str_ += ")";
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement