QTfrontend/ui/widget/about.cpp
changeset 9327 02caf698a8f1
parent 9321 1d56051f70c8
child 9329 b825fa990e1c
equal deleted inserted replaced
9325:2d686849eead 9327:02caf698a8f1
    35 #ifdef VIDEOREC
    35 #ifdef VIDEOREC
    36 extern "C"
    36 extern "C"
    37 {
    37 {
    38 #include "libavutil/avutil.h"
    38 #include "libavutil/avutil.h"
    39 }
    39 }
       
    40 #endif
       
    41 
       
    42 
       
    43 #if defined(Q_OS_WINDOWS)
       
    44 #define sopath(x) x ".dll"
       
    45 #elif defined(Q_OS_MAC)
       
    46 #define sopath(x) "@executable_path/../Frameworks/" x ".framework/" x
       
    47 #else
       
    48 #define sopath(x) x //TODO
    40 #endif
    49 #endif
    41 
    50 
    42 #include "about.h"
    51 #include "about.h"
    43 
    52 
    44 About::About(QWidget * parent) :
    53 About::About(QWidget * parent) :
    98     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_mixer</a> version: %1.%2.%3<br>")
   107     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_mixer</a> version: %1.%2.%3<br>")
    99         .arg(MIX_MAJOR_VERSION)
   108         .arg(MIX_MAJOR_VERSION)
   100         .arg(MIX_MINOR_VERSION)
   109         .arg(MIX_MINOR_VERSION)
   101         .arg(MIX_PATCHLEVEL));
   110         .arg(MIX_PATCHLEVEL));
   102 
   111 
       
   112     void *sdlnet_handle = SDL_LoadObject(sopath("SDL_net"));
       
   113     if (sdlnet_handle != NULL) {
       
   114         SDL_version *(*sdlnet_ver_get)(void) = NULL;
       
   115         sdlnet_ver_get = (SDL_version *(*)(void)) SDL_LoadFunction(sdlnet_handle, "SDLNet_Linked_Version");
       
   116         if (sdlnet_ver_get != NULL) {
       
   117             SDL_version *sdlnet_ver = sdlnet_ver_get();
       
   118             libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_net</a> version: %1.%2.%3<br>")
       
   119                 .arg(sdlnet_ver->major)
       
   120                 .arg(sdlnet_ver->minor)
       
   121                 .arg(sdlnet_ver->patch));
       
   122         }
       
   123         SDL_UnloadObject(sdlnet_handle);
       
   124     }
       
   125 
   103     libinfo.append(QString("<a href=\"http://qt-project.org/\">Qt</a> version: %1<br>").arg(QT_VERSION_STR));
   126     libinfo.append(QString("<a href=\"http://qt-project.org/\">Qt</a> version: %1<br>").arg(QT_VERSION_STR));
   104 
   127 
   105 #ifdef VIDEOREC
   128 #ifdef VIDEOREC
   106     libinfo.append(QString("<a href=\"http://libav.org\">Libav</a> version: %1.%2.%3<br>")
   129     libinfo.append(QString("<a href=\"http://libav.org\">Libav</a> version: %1.%2.%3<br>")
   107         .arg(LIBAVUTIL_VERSION_MAJOR)
   130         .arg(LIBAVUTIL_VERSION_MAJOR)