source: smplayer/trunk/src/version.cpp@ 165

Last change on this file since 165 was 165, checked in by Silvan Scherrer, 11 years ago

SMPlayer: update trunk to latest 0.8.7

  • Property svn:eol-style set to LF
File size: 1.6 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
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
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#include "version.h"
20
21#define USE_SVN_VERSIONS 0
22
23#define VERSION "14.3.0"
24
25#if USE_SVN_VERSIONS
26#include <svn_revision.h>
27#else
28#define SVN_REVISION "6158"
29#endif
30
31#ifdef Q_OS_WIN
32#if defined(_WIN64)
33#define SMPWIN_ARCH "(64-bit)"
34#elif defined(_WIN32) && !defined(_WIN64)
35#define SMPWIN_ARCH "(32-bit)"
36#endif
37#endif
38
39QString Version::printable() {
40#if USE_SVN_VERSIONS
41#ifdef Q_OS_WIN
42 return QString(QString(VERSION) + " (svn r" + QString(SVN_REVISION) + ") " + QString(SMPWIN_ARCH));
43#else
44 return QString(QString(VERSION) + " (svn r" + QString(SVN_REVISION) + ")");
45#endif
46#else
47#ifdef Q_OS_WIN
48 return QString(QString(VERSION) + " " + QString(SMPWIN_ARCH));
49#else
50 return QString(VERSION);
51#endif
52#endif
53}
54
55QString Version::stable() {
56 return QString(VERSION);
57}
58
59QString Version::revision() {
60 return QString(SVN_REVISION);
61}
62
Note: See TracBrowser for help on using the repository browser.