QTfrontend/ui/widget/about.cpp
changeset 9329 b825fa990e1c
parent 9327 02caf698a8f1
child 9331 26f0bf0de172
equal deleted inserted replaced
9327:02caf698a8f1 9329:b825fa990e1c
   121                 .arg(sdlnet_ver->patch));
   121                 .arg(sdlnet_ver->patch));
   122         }
   122         }
   123         SDL_UnloadObject(sdlnet_handle);
   123         SDL_UnloadObject(sdlnet_handle);
   124     }
   124     }
   125 
   125 
       
   126     void *sdlimage_handle = SDL_LoadObject(sopath("SDL_image"));
       
   127     if (sdlimage_handle != NULL) {
       
   128         SDL_version *(*sdlimage_ver_get)(void) = NULL;
       
   129         sdlimage_ver_get = (SDL_version *(*)(void)) SDL_LoadFunction(sdlimage_handle, "IMG_Linked_Version");
       
   130         if (sdlimage_ver_get != NULL) {
       
   131             SDL_version *sdlimage_ver = sdlimage_ver_get();
       
   132             libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_image</a> version: %1.%2.%3<br>")
       
   133                 .arg(sdlimage_ver->major)
       
   134                 .arg(sdlimage_ver->minor)
       
   135                 .arg(sdlimage_ver->patch));
       
   136         }
       
   137         SDL_UnloadObject(sdlnet_handle);
       
   138     }
       
   139 
       
   140     void *sdlttf_handle = SDL_LoadObject(sopath("SDL_ttf"));
       
   141     if (sdlttf_handle != NULL) {
       
   142         SDL_version *(*sdlttf_ver_get)(void) = NULL;
       
   143         sdlttf_ver_get = (SDL_version *(*)(void)) SDL_LoadFunction(sdlttf_handle, "TTF_Linked_Version");
       
   144         if (sdlttf_ver_get != NULL) {
       
   145             SDL_version *sdlttf_ver = sdlttf_ver_get();
       
   146             libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_ttf</a> version: %1.%2.%3<br>")
       
   147                 .arg(sdlttf_ver->major)
       
   148                 .arg(sdlttf_ver->minor)
       
   149                 .arg(sdlttf_ver->patch));
       
   150         }
       
   151         SDL_UnloadObject(sdlnet_handle);
       
   152     }
       
   153 
       
   154 
   126     libinfo.append(QString("<a href=\"http://qt-project.org/\">Qt</a> version: %1<br>").arg(QT_VERSION_STR));
   155     libinfo.append(QString("<a href=\"http://qt-project.org/\">Qt</a> version: %1<br>").arg(QT_VERSION_STR));
   127 
   156 
   128 #ifdef VIDEOREC
   157 #ifdef VIDEOREC
   129     libinfo.append(QString("<a href=\"http://libav.org\">Libav</a> version: %1.%2.%3<br>")
   158     libinfo.append(QString("<a href=\"http://libav.org\">Libav</a> version: %1.%2.%3<br>")
   130         .arg(LIBAVUTIL_VERSION_MAJOR)
   159         .arg(LIBAVUTIL_VERSION_MAJOR)