QTfrontend/ui/widget/about.cpp
branchsdl2transition
changeset 11362 ed5a6478e710
parent 9677 71626318f80e
parent 11046 47a8c19ecb60
child 11384 95d5badcb44f
equal deleted inserted replaced
11361:31570b766315 11362:ed5a6478e710
     1 /*
     1 /*
     2  * Hedgewars, a free turn based strategy game
     2  * Hedgewars, a free turn based strategy game
     3  * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com>
     3  * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com>
     4  *
     4  *
     5  * This program is free software; you can redistribute it and/or modify
     5  * This program is free software; you can redistribute it and/or modify
     6  * it under the terms of the GNU General Public License as published by
     6  * it under the terms of the GNU General Public License as published by
     7  * the Free Software Foundation; version 2 of the License
     7  * the Free Software Foundation; version 2 of the License
     8  *
     8  *
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12  * GNU General Public License for more details.
    12  * GNU General Public License for more details.
    13  *
    13  *
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    17  */
    17  */
    18 
    18 
    19 #include <QGridLayout>
    19 #include <QGridLayout>
    20 #include <QLabel>
    20 #include <QLabel>
    21 #include <QList>
    21 #include <QList>
    33 #include "physfs.h"
    33 #include "physfs.h"
    34 
    34 
    35 #ifdef VIDEOREC
    35 #ifdef VIDEOREC
    36 extern "C"
    36 extern "C"
    37 {
    37 {
    38 #include "libavutil/avutil.h"
    38     #include "libavcodec/version.h"
       
    39     #include "libavformat/version.h"
       
    40     #include "libavutil/avutil.h" // version.h only from 51.36.0
    39 }
    41 }
    40 #endif
    42 #endif
    41 
    43 
    42 
    44 
    43 #if defined(Q_OS_WINDOWS)
    45 #if defined(Q_OS_WINDOWS)
   164 
   166 
   165 
   167 
   166     libinfo.append(QString("<a href=\"http://qt-project.org/\">Qt</a> version: %1<br>").arg(QT_VERSION_STR));
   168     libinfo.append(QString("<a href=\"http://qt-project.org/\">Qt</a> version: %1<br>").arg(QT_VERSION_STR));
   167 
   169 
   168 #ifdef VIDEOREC
   170 #ifdef VIDEOREC
   169     libinfo.append(QString("<a href=\"http://libav.org\">Libav</a> version: %1.%2.%3<br>")
   171     libinfo.append(QString("<a href=\"http://libav.org\">libavcodec</a> version: %1.%2.%3<br>")
       
   172         .arg(LIBAVCODEC_VERSION_MAJOR)
       
   173         .arg(LIBAVCODEC_VERSION_MINOR)
       
   174         .arg(LIBAVCODEC_VERSION_MICRO));
       
   175     libinfo.append(QString("<a href=\"http://libav.org\">libavformat</a> version: %1.%2.%3<br>")
       
   176         .arg(LIBAVFORMAT_VERSION_MAJOR)
       
   177         .arg(LIBAVFORMAT_VERSION_MINOR)
       
   178         .arg(LIBAVFORMAT_VERSION_MICRO));
       
   179     libinfo.append(QString("<a href=\"http://libav.org\">libavutil</a> version: %1.%2.%3<br>")
   170         .arg(LIBAVUTIL_VERSION_MAJOR)
   180         .arg(LIBAVUTIL_VERSION_MAJOR)
   171         .arg(LIBAVUTIL_VERSION_MINOR)
   181         .arg(LIBAVUTIL_VERSION_MINOR)
   172         .arg(LIBAVUTIL_VERSION_MICRO));
   182         .arg(LIBAVUTIL_VERSION_MICRO));
   173 #endif
   183 #endif
   174 
   184